Thank you for your reply. I have ended up doing the following (given my limited knowledge of J2EE) 1. Define a @Service class in JBoss to act as a wrapper to my camel context. (We are on EJB 3.0 and hence dont have @Singelton). 2. This class starts camel and saves its instance (in the @Start method). 3. Other EJBs can retreive that instance using the interface method getCamelContext. Hopefully that should do it. I am having issues with OpenEJB testing with @Service since its a jboss specific extension but I think I have some workarounds.
-v- ________________________________ From: Claus Ibsen-2 [via Camel] [mailto:ml-node+s465427n5714712...@n5.nabble.com] Sent: Wednesday, June 20, 2012 1:08 AM To: Vishal Changrani Subject: Re: Pointers on setting up Camel on JBoss 5.1 using EJBs/Hibernate On Mon, Jun 18, 2012 at 9:36 PM, vishal1981 <[hidden email]</user/SendEmail.jtp?type=node&node=5714712&i=0>> wrote: > Hi, > I want to setup Camel as part on of my application being deployed to JBoss > 5.1. My application nests in a bigger ear (which is a company wide umbrella > application) and it contains several modules including 3 of mine - ejb jar, > servlets war and REST API war. There is also an interface jar in the lib > folder of the ear. We are not using Spring but EJB (hibernate and JPA). > This is my first time with Camel and wanted to make sure I got the > deployment right. I intend to use Camel to start and stop several routes > during runtime based on some user selections. > What is the recommended way of deploying Camel in this scenario? Should it > be part of the war or ejb jar? > I am using Camel 2.9.2 ..do I still need the special JBoss Camel component? > Thanks > V > There is no shoe that fits all. Camel is very flexible, so you can deploy it as you want. In a WAR or as part of EAR. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Pointers-on-setting-up-Camel-on-JBoss-5-1-using-EJBs-Hibernate-tp5714636.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [hidden email]</user/SendEmail.jtp?type=node&node=5714712&i=1> Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen ________________________________ If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/Pointers-on-setting-up-Camel-on-JBoss-5-1-using-EJBs-Hibernate-tp5714636p5714712.html To unsubscribe from Pointers on setting up Camel on JBoss 5.1 using EJBs/Hibernate, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5714636&code=dmlzaGFsLmNoYW5ncmFuaUBlcmljc3Nvbi5jb218NTcxNDYzNnwxNTgwMjU0NDcx>. NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> -- View this message in context: http://camel.465427.n5.nabble.com/Pointers-on-setting-up-Camel-on-JBoss-5-1-using-EJBs-Hibernate-tp5714636p5714713.html Sent from the Camel - Users mailing list archive at Nabble.com.