davsclaus commented on code in PR #23307:
URL: https://github.com/apache/camel/pull/23307#discussion_r3261539455


##########
core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java:
##########
@@ -958,6 +1011,8 @@ protected void postProcessCamelContext(CamelContext 
camelContext) throws Excepti
         configureRoutesLoader(camelContext);
         // configure custom main listeners
         configureMainListener(camelContext);
+        // configure virtual threads early before build() to avoid ThreadType 
DCL race
+        configureVirtualThreadsEarly(camelContext);

Review Comment:
   Good catch! Yes, the autoConfigurationSingleOption call for 
virtualThreadsEnabled is now redundant — configureVirtualThreadsEarly() covers 
all the same configuration sources and runs at the right moment (before 
camelContext.build()). Removed it in the follow-up commit.
   
   _Claude Code on behalf of Claus Ibsen_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to