This content has been marked as final. Show 1 reply
Is there a order in which jboss loads it's deployed applications
and if so can this order be influenced?
Yes again. There's a jboss-service.xml file in %JBOSS_HOME%/server/default/conf (replace "default", in this path, with whatever server configuration you are using) which specifies a URLComparator which is used by the DeploymentScanner for ordering the deployments.
Extract from that file:
The URLComparator can be used to specify a deployment ordering
for deployments found in a scanned directory. The class specified
must be an implementation of java.util.Comparator, it must be able
to compare two URL objects, and it must have a no-arg constructor.
Two deployment comparators are shipped with JBoss:
Sorts by file extension, as follows:
"sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip",
If the name portion of the url begins with 1 or more digits, those
digits are converted to an int (ignoring leading zeroes), and
files are deployed in that order. Files that do not start with
any digits will be deployed first, and they will be sorted by
extension as above with DeploymentSorter.
By default it is set to org.jboss.deployment.DeploymentSorter. You can provide your own implementation if these 2 classes shipped by JBoss do not meet your requirements