2009/12/22 Adrian Trenaman <[email protected]>: > Might be a bit tricky: maybe you could declare the context in one bundle, > register it as an osgi service, and then pull it in to the routes in your > other bundles. > > Another approach I've used in the past is to provide an osgi service for each > route, which uses the producerTemplate to kick off thje route when another > bundle invokes on the service. > > Alternatively, just use JMS with optimized vm transport to communicate in > between the bunldles.
Agreed. Or use the NMR or JBI endpoints from ServiceMix whose main purpose is to communicate messages across class loaders -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/
