camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ext2" <>
Subject Re: Help with Camel JAXB (SMX4 + Camel 2.1.0)(Maybe a bug of Camel)
Date Fri, 17 Dec 2010 17:40:13 GMT
Hi, Camel: 
	I have raised a JIRA for the question;
Hi, Camel:
	I have raised a issue to show it more clearly using source code

major changes exists in the JAXBDataFormatter .getContext() method

	Camel's JAXBDataFormatter using Thread.contextClassLoader() to
create JAXBContext;
	It's suspiciously, I think it's bug;
	Spring DM (from 1.2.0)'s extender will using a separate Thread to
loading  spring configures; In this thread, the thread's context ClassLoader
will be set to the current bundle's ClassLoader; So if JaxbDataFormatter's
context is created in the thread, the class loader will be right;
	But this is not always guaranteed, so sometimes, the Camel's jaxb
will not works;
	I think the JAXBDataFormatter should explicitly use Spring
Application Context's class loader; 

Sender: sharma_arun_se [] 
Date: 2010/12/17 23:28
Subject: Re: Help with Camel JAXB (SMX4 + Camel 2.1.0)


It was in same bundle of camel route.

Do let me know, if you need more input.


Arun Kumar (sharma_arun_se)


Arun Kumar (sharma_arun_se)

Expert SOA (Fuse ESB, Camel, ActiveMQ, OSGi) and RESTful Solution Architect,
Open Source Contributor.

View this message in context:
Sent from the Camel - Users (activemq) mailing list archive at

View raw message