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

Willem Jiang commented on CAMEL-3438:
-------------------------------------

@xuhongbo
You can get the Spring Application Context Classloader from the 
SpringCamelContext.
But I don't think you can get the CamelContext from the JAXBDataFormatter now.

Maybe we can do some improvement in Camel3.0.


> JAXBDataFormatter should using Spring ApplicationContext's classLoader 
> explicitly
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-3438
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3438
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: xuhongbo
>         Attachments: JaxbDataFormat.java
>
>
> JAXBDataFormatter now using JAXBContext.newInstance(path) to create 
> JAXBContext,
> but this will using Thread's context classLoader.
> this may causing un-expected class or resource not found exceptions;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to