How To Use JBossPatchURL

Solution Verified - Updated -

Issue

  • How to utilize JBossPatchURL
  • We have two .JAR files in the /server/default/lib directory (myJar1.jar and myJar2.jar). Four classes in myJar2.jar are the updated versions of classes in myJar1.jar. So we'd like to load myJar2.jar before myJar1.jar. I have tried to modify the name of myJar2.jar to be myJarB.jar or myJarC.jar and touched this jar to be the newest one, but none of these changes forced myJar2.jar to load before myJar1.jar. Could you tell me a way to force classes to be loaded in a particular order?
  • We want to deploy new versions of application class files without reinstalling already installed applications that contain the previous versions of these classes. We want to place the new files at an arbitrary location on the file system.
  • I followed this steps to deploy patched classes. But these classes are not loaded instead the original classes are loaded from jar file at WEB-INF/lib/ in application's WAR file. I suspect JBossPatchURL caters only for system wide libraries not application specific libraries.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x
    • 4.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.