users@glassfish.java.net

Re: Add jsf and backbean to web application without deploy all application

From: <glassfish_at_javadesktop.org>
Date: Tue, 05 Oct 2010 05:41:00 PDT

To my knowledge, having several jars as a part of an EJB project means you will have to pack the dependencies within the jar and a classpath entry to the META-INF/MANIFES.INF of your jar project.

For example
ejb-impl.jar
+---/lib/ejb-interfaces.jar
+---/lib/ejb-jpa.jar
+---/META-INF/MAINFEST.INF
                      +--Entry in this file saying classpath: lib/ejb-interfaces.jar, /lib/ejb-jpa.jar

Maybe the easiest way is to deploy the ejb jar module inside an EAR project and add all dependant jars to the lib directory of the ear project. In this case, you woulnd't need add anything to /META-INF/MAINFEST.INF as any jars in the lib directory become inmediatly available to any of hte jee modules.
[Message sent by forum member 'pablopina']

http://forums.java.net/jive/thread.jspa?messageID=484368