Two Laptop Bag
The moose likes JBoss/WildFly and the fly likes Start JBoss messaging before my application gets deployed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Start JBoss messaging before my application gets deployed" Watch "Start JBoss messaging before my application gets deployed" New topic
Author

Start JBoss messaging before my application gets deployed

Ananth Vasudevan
Ranch Hand

Joined: Sep 30, 2010
Posts: 30
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?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10441
    
176

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.

[My Blog] [JavaRanch Journal]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Start JBoss messaging before my application gets deployed
 
It's not a secret anymore!