In my application there is a scenario where I have to provide patches in the production as a jar (hot patch). So in this case if 2 or 3 jar provided as a hot patch, now the issue is. These jars should be loading in the sequence location of jar is “jboss /server/default/lib”
How to control the jar loading order or how JBOSS 5.1 loads (order) jar from the “jboss /server/default/lib”
The order is how java.io.File::listFiles() returns it.
But you could control the order via your custom deployer.
e.g. just before we create ClassLoader you would take the classpath entries,
and re-order then the way you would like them