I'm wondering what is the 'best' way to package AR, EAR, SAR, JAR together.
I'm currently packaging my EAR, WAR's inside a SAR but many people rather packaged SAR inside EAR. Is there a preferred solution?
Here is my SAR:
mysar.sar
----myjar.jar
----myear.ear
----mywar.war
--------META-INF/MANIFEST.MF
----META-INF/jboss-service.xml
This starts schedulers (schedulable class are within 'myjar.jar'). Nothing was added in the MANIFEST.MF of the 'mysar.sar' to make 'myjar.jar' available to jboss-service.xml.
But 'mywar.war' cannot find classes within 'myjar.jar'. I try to set-up the 'Class-Path' attribute in the MANIFEST.MF of 'mywar.war' but it doesn't work.
Any suggestion?