You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by zregvart <gi...@git.apache.org> on 2017/09/26 10:04:17 UTC
[GitHub] camel pull request #1961: CAMEL-11814: makes NO_START a ThreadLocal, and ...
GitHub user zregvart opened a pull request:
https://github.com/apache/camel/pull/1961
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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zregvart/camel CAMEL-11814
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1961.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1961
----
commit b53773853e8fff5cad3854ed096812b844086080
Author: Zoran Regvart <zr...@apache.org>
Date: 2017-09-26T10:03:12Z
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.
----
---
[GitHub] camel pull request #1961: CAMEL-11814: makes NO_START a ThreadLocal, and ...
Posted by zregvart <gi...@git.apache.org>.
Github user zregvart closed the pull request at:
https://github.com/apache/camel/pull/1961
---