On Thu, Jan 16, 2014 at 6:15 AM, Muhzin <rmuh...@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: 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