File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 9941
    
159

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Start JBoss messaging before my application gets deployed
 
Similar Threads
Jboss- JMS
Configure JMSConnection factory and JMSQueue
[JMS] communication between producer-consumer, different vendors
Load Balancing in Websphere 6.x through MDB's
JMS Provider