[jboss-user] [EJB/JBoss] - EJB deploy before queue is ready

rfidler1978 do-not-reply at jboss.com
Thu May 14 14:45:16 EDT 2009


Hello,

    I'm have a sar which has an ejb jar and a jboss-service.xml with queue definitions which the mdbs point to.  The issue is when I deploy the sar, the ejb jar is being deployed before the queues are created, but just barely.  

There is an error that it couldn't find the queue to bind the MDB to and states a temporary queue will be created - it errors saying that queue has already been created.  After that error, JBoss tries and successfully binds the MDB to the queue.

>From what I can tell, it seems to be an issue of timing, it's deploying the EJBs and creating the queues at the same time.  Is there any way to tell the EJBs to wait for the queues - other than putting some dependency on the EJBDeployer itself?  For instance, any way in the ejb-jar.xml to tell the ejbs to wait for the queue to be created before trying to be deployed?

Thanks,

Randall

NOTE:  If this is in the wrong forum, my apologies.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231155#4231155

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231155



More information about the jboss-user mailing list