I have a JAR file for authorization. I need this for each of my WAR files. All WAR files are packaged in an EAR file. Should I repeat this common JAR in every WAR, or is there a structure for shared libraries?
So my example looks something like this:
big.ear - META-INF - MANIFEST.MF - application.xml - appl1.war - META-INF - MANIFEST.MF - WEB-INF - web.xml - lib - unique1.jar - unique2.jar - unique3.jar - common1.jar - jsps/html/etc - appl2.war - META-INF - MANIFEST.MF - WEB-INF - web.xml - lib - unique3.jar - unique4.jar - common1.jar - jsps/html/etc - appl3.war - META-INF - MANIFEST.MF - WEB-INF - web.xml - lib - unique5.jar - common1.jar - jsps/html/etc
Each of my WAR applications can see common1.jar, but it is in the EAR three times.
Where in the EAR structure can I put common1.jar so that appl1, appl2 and appl3 can see it without repeating it three times?
java java-ee enterprise-library
dacracot
source share