This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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”
If you have patched JAR files, place them into a separate directory, such as jboss_home/common/patch, and then add "--patchdir=/full/path/to/jboss/common/patch". Then the patches will take precedence to the other JARs. Run the run script with --help for details.
But thing is that I don’t allow to change any script (run.bat/run.sh etc) for the deployment on the production, but I can crate new folder for placing the patch.jar. and one more thing I may have multiple patches, and sequence of loading jar matters for that. So is there any other ways to archive it.