Reputation: 373
I using deployment descriptor XML file to deploy WAR file, say 'sample.war'. I have also deployed WAR file sin webapps. Does the 'sample.war' always deployed before other WARs in webapps?
Upvotes: 0
Views: 397
Reputation: 49462
Deployment order is FileSystem dependent.
There is no provisions in the servlet spec to dictate the webapp loading order. Having webapps depend on each other directly like that is highly discouraged.
Common classes or functionality are typically shared via the server classloader and JNDI.
Upvotes: 1