This content has been marked as final.
Show 2 replies
-
1. Re: EJB deploy before queue is ready
skajotde May 15, 2009 5:49 AM (in response to rfidler1978)The same problem was on Weblogic 8. I'm courius of proper solution.
-
2. Re: EJB deploy before queue is ready
jaikiran May 15, 2009 6:53 AM (in response to rfidler1978)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?
You can do that through jboss.xml. Here's an example:<enterprise-beans> <session> <ejb-name>MyEJB</ejb-name> <depends>jboss.mq.destination:name=DLQ,service=Queue</depends> ... </session> ... </enterprise-beans>
The EJB then will deploy after the DLQ queue is deployed. You will have to check the jmx-console to find the correct MBean service name for the queue.