Process Deployment Order after Restart

Hi,

i got multipile war files in my webapps folder with the same process key and different versiontags, like projectA-1.0.0.war and projectA-1.1.0.war.

So after restart, every .war gets an own deploymendid, but how is determined, which version is the latest?

In other words:
Is there a defined order for the deployments of a process after restarting the server, or it is just random?

It depends upon the Java container, I believe. We use WildFly and it deploys them in the order listed in the standalone.xml (or domain.xml) file. This list can be found at the bottom of these files. For other containers like Tomcat, it may be related to their alphabetical order in the deployment directory itself, which may also be true for WildFly if you’re using such a deployment method.

I believe it’s possible to control the load order within many Java containers, though I’ve never tried it. For WildFly, this seemed like it was complicated.