Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CAMEL-11814: makes NO_START a ThreadLocal, and ...
...changes the way CamelMainRunController is started We need to change NO_START flag back to ThreadLocal as there is a use case when it's used from a single classloader outside of the tests in wildfly-camel. CamelMainRunController would atempt to start CamelContext from a thread that does not have the NO_START flag defined (it's a ThreadLocal), so it can only run when CamelContext is started. It's main purpose is to prevent the SpringBoot application JVM from terminating so having it run when the CamelContext is started doesn't prevent that.
- Loading branch information
Showing
2 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters