I’m working on an older j2ee project. It runs on JBoss. It deploys various ears and wars. It also requires many jar files in the $JBOSS_HOME/server/default/lib directory. Should those all be moved to the ear and war files?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you are doing will work fine, but I usually like to put them in the individual EAR/WAR files.
The biggest reason for that is if you have multiple applications that use the same libraries and want to upgrade to a new version for one app, you can do that without affecting the rest of them. This of course is especially important if the new version of the library introduces a breaking change that would then have to be fixed in all your applications rather than just the one that needs the new version.