Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order of loading jar from “jboss5.1 /server/default/lib”

 
NarendraR Chouhan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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”
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NarendraR, welcome to Java Ranch!

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.
 
NarendraR Chouhan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter for the reply.

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.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wasn't very clear, the --patchdir is not a change to the run script. Instead, you add it to the command line. Example:

run --patchdir=xxxx ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic