camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhzin <rmuh...@gmail.com>
Subject Re: Difference in standalone main class
Date Thu, 16 Jan 2014 08:55:59 GMT
Hi,
Thanks for the advice Claus Ibsen. It was very helpful.


On Thu, Jan 16, 2014 at 1:20 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:

> On Thu, Jan 16, 2014 at 6:15 AM, Muhzin <rmuhzin@gmail.com> wrote:
> > Hi,
> > I am new to camel
> > can anyone please explain the difference between the the main class
> > provided in  camel to make it stand alone. ie,
> >
> >    - camel-core JAR in the org.apache.camel.Main class (requires Camel
> 2.6)
> >    - camel-spring JAR in the org.apache.camel.spring.Main class
> >
> > Other than the main class in spring can  boot camel from spring xml
> files.
> >
>
> I think you said it. One is for spring apps, and the other is for
> regular standalone apps.
>
>
> > Is it a good practice to make my camel application standalone in my
> > production environment or is it better to make it run in an osgi
> container
> > such as karaf?
> >
>
> That is your choice. There is nothing that is a clear winner. Camel
> can run in almost any kind of server/environment, and its your choise
> to pick what you need to use.
>
> And often your company have existing infrastructure you must use.
>
> But often it can be a good idea to use a container, to let the
> container manage your applications. If you need to deploy more than
> one application.
>
> Just mind that OSGi is not super easy to get started with, and it also
> influences how you develop your applications. So take some time to get
> more familiar with OSGi. But it brings a lot of value to the table if
> you need and learn to use it.
>
> Maybe pickup a few of the Karaf/OSGi books
> http://karaf.apache.org/index/community/articles.html
>
>
>
>
> > --
> > BR
> > Muhsin
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@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
>



-- 
BR
Muhsin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message