Just FYI,

This issue was double posted in Fuse forums and it is answered[1].

[1]http://fusesource.com/forums/thread.jspa?messageID=11321

On 7/23/11 3:47 AM, rogelio_sevilla1 wrote:
Found one of my errors, i should have used the CamelContextFactory instead of
the default context. I changed my RouteFactory implementation to this:


  MyRoute miruta = new MyRoute();
         BundleContext bundleContext = Activator.getBundleContext();
         CamelContextFactory camelContextFactory = new CamelContextFactory();
         camelContextFactory.setBundleContext(bundleContext);
         DefaultCamelContext defaultContext =
camelContextFactory.createContext();
         defaultContext.addRoutes(miruta);
         defaultContext.start();


Now i'm getting a weird exception, it seems that camel cannot find one of
the classes that is used in one of my routes. But i don't understand, the
class that camel is complaining about is included in the same bundle and the
same package where i'm getting the route from the beginning :-S , which is
also exported through the pom file.  Here's the exception i'm getting:






--
View this message in context: 
http://camel.465427.n5.nabble.com/Instantiating-an-osgi-bundled-camel-route-from-another-bundle-tp4623697p4624476.html
Sent from the Camel - Users mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to