Hi Using a spring or blueprint xml file to bootstrap Camel is often much easier, as it does all the OSGi lifecycle and other pieces you otherwise must do yourself.
If you dont want to do that, then you need to use an osgi activator to call some code, that creates a OsgiCamelContext and setup a bunch of stuff to make it run in OSGi. And as well stop and cleanup these services again when the bundle stops. Though much easier to just have a little OSGI-INF/blueprint/somenamehere.xml blueprint xml file that embeds a <camelContext> and you have Camel running. On Fri, Jan 17, 2014 at 4:48 AM, Muhzin <rmuh...@gmail.com> wrote: > Hi all, > I am trying to run camel application in karaf. I new to programming for > osgi. How can I make my camel routes run in it? Can i put it in a normal > main() class and run it? > > -- > BR > Muhsin -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io