I have two message driven beans on which I need to specify a dependency. The dependency is a WEB app. So, basically I need to say "Halt the deployment of Message Driven Beans until the WEB app has fully deployed"? I could easily do this in JBOSS 5 by using depends-on
element but I'm unable to find a similar element in JBOSS 7 EJB 3.
In application.xml configuration file, you can specify the order of the modules to be deployed by the server. Below is the sample configuration for deployment, modify it accordingly.
<initialize-in-order>true</initialize-in-order>
<display-name>DeploymentConfig</display-name>
<module>
<web>
<web-uri>WebApp.war</web-uri>
<context-root>WebApp-war</context-root>
</web>
</module>
<module>
<ejb>EJBApp.jar</ejb>
</module>
<module>
<ejb>AppEAR.jar</ejb>
</module>
I believe this is what you're looking for - Classloading in AS 7 . It describes how to set dependencies on other deployed modules and / or AS internal modules as well.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.