-
Jul 19th, 2006, 08:41 AM
#1
Best Practice - Spring under JBoss
Looking for best practice for deploying Spring jar files under JBoss.
We are running several web applications in a Tomcat instance running under JBoss. All of these WARs are part of a larger application JBoss is serving for us.
Should we deploy the Spring jar files (and supporting jar files - not including our app specific jars:
a) in the war files
b) in the common lib area of Tomcat
c) in the common lib area of Jboss
Currently we have no plans to use EJB's, but we are using JBoss clustering, JBoss JMS, other features of the J2EE container.
Looking for any pros and cons those with more experience can share...
-
Jul 19th, 2006, 09:10 AM
#2
It depends...
If I would have multiple applications sharing the same version of Spring I would place it in some shared directory (tomcat/jboss). However if I have 1 application using it I would place it in the war file.
Also placing jars in other locations can sometimes lead to unpredictable situations.
-
Jul 19th, 2006, 11:56 AM
#3
We will have multiple WARs usng Spring. They will each have there own context.
-
Jul 19th, 2006, 04:15 PM
#4
according to your description, I would place all spring-related jars into the jboss/yourserver/lib. That way you won't have to copy the same files into multiple locations.
-
Jul 19th, 2006, 05:59 PM
#5
I'd first try selecting answer D) None of the above.
Try putting jars in <ear>\lib and create <java> modules in your .ear application.xml
I know you're not using EJB but you can still package multiple <web> modules inside an .ear file, just also then add a <java> module for each .jar you want to include.
-
Jul 20th, 2006, 01:59 AM
#6
That would also be an option, however I concluded they only deployed different wars.
Question from side regarding ears. If I have 30 web apps, sharing the same jars. Could we place those wars in a <ear>\lib. Would this reduce the memory footprint of all those applications? (Currently we have a memory issue on our production servers
). (Note: I didn't suggest the current type of deployment I'm only here to clean up the mess and make things better
)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules