Malini Kennady
Malini Kennady

Reputation: 373

Deployment order of WAR file specified using deployment descriptor

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

Answers (1)

Joakim Erdfelt
Joakim Erdfelt

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

Related Questions