I'm not sure if your IDE container can make sure the camel-core and camel-http4 bundle start before your bundle started. If it can do that, you don't need to add the hard code of camel-http4 in your bundle.
-- 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.javaeye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: willemjiang On Wednesday, November 28, 2012 at 8:35 AM, lleclerc wrote: > The error is "No component found with scheme http4". > > I think I could fix it. > > What I think is like this : > > What happens in IDE : > > MyProject depends {camel-core, camel-http4} > > > > What happens using OSGI : > > MyProject depends {camel-core}, {camel-http4} and camel-core can't find > > camel-http4 even though MyProject use it in a from("http4:...") > > > > So I am linking both bundles, by myself, in the code with those lines : > > Component c = new HttpComponent(); > camelContext.addComponent("http4", c); > > I was trying to add a dependency to a dependency, just for MyApp osgi, which > is not the right way to do it... > > I haven't had time to fully test it and I am not at work right now, will > tell you result tomorrow! > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/OSGI-dependencies-with-camel-tp5723319p5723321.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).