I have a large number of services, and a core set of services that are expected to load first so that they are available when the other services load.
Does Wildfly have a specific order (e.g. alphabetical, based on filename) that it uses when doing deployments? Or is there a way to set this up?
We've tried adding code to retry connections if the other services aren't ready yet, but that involved threads, and sometimes the threads didn't get terminated properly when stuff was undeployed.
Some things that don't work for me:
- It is possible to control the order of deployment of modules (ejb's, war's, etc...) inside of an .ear, but I'm interested in controling the order of .ear deployments.
- An .ear can be set as a dependency of another .ear, but our services are deployed in a variety of regions. We have serviceA-regionA-1.0.0.ear, serviceA-regionB-1.0.0.ear, etc... It would be a big pain to have to specify all of those ear names.