[ 
https://issues.apache.org/jira/browse/CAMEL-7728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113455#comment-14113455
 ] 

Willem Jiang edited comment on CAMEL-7728 at 8/28/14 7:10 AM:
--------------------------------------------------------------

Hi Tomohisa,

You need to setup the ApplicationContextClassLoader when you create the camel 
context. If you don't set that, camel will set it with the classloader which 
loads the camel class. I suggest you setup the bundle class loader when you 
create the camel context in the SwitchYard.

BTW, I will update the code in DefaultCamelContext to take the TCCL into 
consideration CAMEL-7759. If the TCCL is null, it just setup the 
ApplicationContextClassLoader with the class loader which load itself.


was (Author: njiang):
Hi Tomohisa,

You need to setup the ApplicationContextClassLoader when you create the camel 
context. If you don't set that, camel will set it with the classloader which 
loads the camel class. I suggest you setup the bundle class loader when you 
create the camel context in the SwitchYard.

BTW, I will update the code in DefaultCamelContext to take the TCCL as 
consideration. If the TCCL is null, it just setup the 
ApplicationContextClassLoader with the class loader which load itself.

> Setup the TCCL before create the instance from the BaseResolver
> ---------------------------------------------------------------
>
>                 Key: CAMEL-7728
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7728
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-osgi
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.12.5, 2.13.3, 2.14.0
>
>
> It could be useful for creating the instance if we can set up the TCCL with 
> the camel application context class loader in the OSGi world.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to