camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Camel main class in osgi bundle
Date Fri, 17 Jan 2014 07:40:24 GMT

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 <> 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.
Twitter: davsclaus
Author of Camel in Action:
Make your Camel applications look hawt, try:

View raw message