Hi, Camel supports OSGi out of box. How did you deploy you camel route? camel-core will try to locate the component from the OSGi bundle, if you deploy the camel-core bundle and camel-quartz bundle, the camel-qurtz component can be found without doing any additional work.
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Monday, April 8, 2013 at 5:12 PM, vseibt wrote: > I have a Problem using camel with osgi (eclipse virgo server). > > I've defined a camel-route with camel-java-dsl like "from("quartz:...") in > my OSGi-Module. > > On trying to start the route I get the error "Failed to create route [...] > No component found with scheme: quartz". > > All camel and spring modules are in place. > > I'm not realy surprised about this error, because in general camel finds its > components doing a classpath-search in > META-INF/service/org/apache/camel/component. > Because this "Packages" is not exported from camel-quartz this component > can't be found from the classloader for my module. > > After adding this path including the file quartz from camel-quartz to my > module everything runs pretty well (that's why I'm sure all modules are in > place). > > But this can't be the intended way using camel and osgi. > > This seems not only to be a problem for camel-quartz but for all camel > components. > > How is it done "the right way"? > Or is it a bug in camel osgi-bundling? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-and-osgi-component-not-found-tp5730484.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).