camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ext2" <x...@tongtech.com>
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
https://issues.apache.org/jira/browse/CAMEL-3438

major changes exists in the JAXBDataFormatter .getContext() method

=====================================================================
Hi,Camel:
	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; 


-----Origin-----
Sender: sharma_arun_se [mailto:arun.kaundal@gmail.com] 
Date: 2010/12/17 23:28
Receiver: users@camel.apache.org
Subject: Re: Help with Camel JAXB (SMX4 + Camel 2.1.0)


Hi,

It was in same bundle of camel route.

Do let me know, if you need more input.


Thanks,


Arun Kumar (sharma_arun_se)


-----
Regards,

Arun Kumar (sharma_arun_se)

Expert SOA (Fuse ESB, Camel, ActiveMQ, OSGi) and RESTful Solution Architect,
Open Source Contributor.
linkedin: http://in.linkedin.com/in/aronkumar
twitter: https://twitter.com/#!/SharmaArunKumar
blog: http://techiesweek.blogspot.com/
Gtalk: arun.kaundal@gmail.com

-- 
View this message in context:
http://camel.465427.n5.nabble.com/Help-with-Camel-JAXB-SMX4-Camel-2-1-0-tp47
0566p3309556.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.






Mime
View raw message