This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I'm using Jboss 5.1 (which comes with JBM 1.4.x by default) with all configuration.
When the start the Jboss without my application deployed, the JMS service starts and I can see the Jboss Messaging and ConnectionFactory started messages.
But when I deploy my ear file which contains JMS code inside the jboss-service.xml, the application gets deployed first and I get deployment errors and "ConnectionFactory not bound" error. I don't see the JBM and ConnectionFactory in the start up messages.
How do I start the Jboss Messaging server before my application gets deployed? I have a vague idea that I need to have a <depends> somewhere.
Can somebody throw any light to solve this issue?
You can add a <depends> within your jboss-service.xml to depend on the JMS service(s). How are you deploying your .ear? I would have expected the .ear to be deployed after the JMS services are started.