This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch fix/camel-23479-virtual-threads-early-config in repository https://gitbox.apache.org/repos/asf/camel.git
commit ad4fafc979f17d8d170ad5e61b8ffd1e202de3db Author: Claus Ibsen <[email protected]> AuthorDate: Mon May 18 21:29:22 2026 +0200 CAMEL-23479: Remove redundant virtualThreadsEnabled autoConfigurationSingleOption configureVirtualThreadsEarly() now covers all configuration sources and runs before camelContext.build(), making the later autoConfigurationSingleOption call for virtualThreadsEnabled redundant. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --- .../src/main/java/org/apache/camel/main/BaseMainSupport.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java index 06d44a4583a0..df830d9473a9 100644 --- a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java +++ b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java @@ -590,15 +590,6 @@ public abstract class BaseMainSupport extends BaseService { autoConfigurationPropertiesComponent(camelContext, autoConfiguredProperties); recorder.endStep(step); step = recorder.beginStep(BaseMainSupport.class, "autoConfigurationSingleOption", "Auto Configure"); - autoConfigurationSingleOption(camelContext, autoConfiguredProperties, "camel.main.virtualThreadsEnabled", - value -> { - boolean enabled = Boolean.parseBoolean(value); - mainConfigurationProperties.setVirtualThreadsEnabled(enabled); - if (enabled) { - System.setProperty("camel.threads.virtual.enabled", "true"); - } - return null; - }); autoConfigurationSingleOption(camelContext, autoConfiguredProperties, "camel.main.routesIncludePattern", value -> { mainConfigurationProperties.setRoutesIncludePattern(value);
