camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Shakirin <ashaki...@talend.com>
Subject RE: Camel uses old context to resolve endpoint by routing
Date Fri, 23 Sep 2011 11:15:18 GMT
Hi Ioannis,

Hmm ... I do not think so.
If camel-core.jar loaded in the same classloader (http://camel.apache.org/vm.html) it works.
And it is exactly the case if both bundles uses the same version of camel-core bundle.
Basically communication works, I have my RoutingSlip called with correct exchange.
The confusing point is why endpoint returned by RoutingSlip is trying to resolve using old
Camel Context (from the first bundle).
If the same endpoint is defined statically in camel route spring configuration - it resolved
using actual Camel Context  (from the second bundle).
For me is unexpected behaviour.

Regards,
Andrei.


-----Original Message-----
From: Ioannis Canellos [mailto:iocanel@gmail.com] 
Sent: 23 September 2011 12:28
To: users@camel.apache.org
Subject: Re: Camel uses old context to resolve endpoint by routing

I think that the vm can only be used to bridge contexts that are in the same bundle.
--
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC Apache ServiceMix <http://servicemix.apache.org/>
 Committer Apache Gora <http://incubator.apache.org/gora/> Committer
*

Mime
View raw message