[
https://issues.apache.org/jira/browse/CAMEL-8349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328902#comment-14328902
]
ASF GitHub Bot commented on CAMEL-8349:
---------------------------------------
GitHub user tdiesler opened a pull request:
https://github.com/apache/camel/pull/402
[CAMEL-8349] Context should be started with defined TCCL
https://issues.apache.org/jira/browse/CAMEL-8349
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tdiesler/camel CAMEL-8349
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/402.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 #402
----
commit 366fc62cc8225913bb832e778612809aa19749d7
Author: Thomas Diesler <[email protected]>
Date: 2015-02-13T09:52:39Z
[CAMEL-8349] Context should be started with defined TCCL
----
> Context should be started with defined TCCL
> -------------------------------------------
>
> Key: CAMEL-8349
> URL: https://issues.apache.org/jira/browse/CAMEL-8349
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.14.1
> Reporter: Thomas Diesler
>
> During CamelContext.start() we may call into various 3rd party modules that
> rely on resource discovery through TCCL. Therefore, we should provide a well
> defined value for TCCL during context start.
> In the WildFly integration layer I attempted to do this using events. This
> approach is flawed however because there is no guarantee of event delivery.
> Conceptually, the requirement for a certain TCCL by 3rd party should not leak
> into client code. Instead, camel should be dealing with these TCCL
> requirements and provide client code a way to defined the ClassLoader
> associated with the context. the role of which is the ApplicationClassLoader.
> I therefore propose setting the TCCL to the ApplicationClassLoader (if there
> is one) just before we call into doStart()
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)