One way of doing this is include JARs in your EAR and reference them from the Manifest of your EJB.jar file. The steps are as follows:
- Put the 3rd party JAR files in your EAR content (at the top level)
- Edit your EJBs Manifest and update the "Class-path:" attribute to have a space (" ") separated list of the JAR names
- Deploy your EAR to your appServer
The EAR should look like:
- EJB.jar
- 3rdpartyA.jar
- 3rdpartyB.jar
The EJB.jar's Manifest should look like:
Manifest-Version: 1.0
Class-Path: 3rdpartyA.jar 3rdpartyB.jar
Hope this helps - Thanks - Mark :-)
No comments:
Post a Comment