File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Dependency between wars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Dependency between wars " Watch "Dependency between wars " New topic

Dependency between wars

Anu Wadhwa

Joined: Jul 28, 2009
Posts: 4

I have an application runs fine on Jboss 4.2.3. I am trying to deploy it on Jboss 5.1.0.GA but having some issues with the order in which wars are deployed.
The wars need to be deployed in the order specified by application.xml.

<application id="App_newproject-ear">
<module id="Module_auth-service.war">
<module id="Module_newproject.war">
<module id="Module_dms.war">
<module id="Module_webservices.war">


I did some search and found out that module order strict doesn't work on Jboss 5.1. Can anyone tell me how do I specify dependency between wars?

Kees Jan Koster
JavaMonitor Support

Joined: Mar 31, 2009
Posts: 251
Dear Anu,

Wars should not be dependent. If you have that, your design is flawed (and you are not adhering to the servlet spec).

Please keep in mind that one war may not be deployed while another is, so there is no way to guarantee that they are both present and loaded. They may alse be deployed in separate containers.

If you have a dependency, you have to break it and change your app. Perhaps you can go through the database, or have one WAR call web services on the other. The absence of the other war is just something you will have to learn to live with.

Kees Jan

Java-monitor, JVM monitoring made easy <- right here on Java Ranch
I agree. Here's the link:
subject: Dependency between wars
It's not a secret anymore!