-
1. Re: How can I specify the jars that contain session beans?
ronsmitsnl May 15, 2007 8:01 AM (in response to michallefler)you can in the application.xml file, mark the jar files in several ways:
jar file for files containing ejb's
jar filefor files not containing ejb's -
2. Re: How can I specify the jars that contain session beans?
ronsmitsnl May 15, 2007 8:03 AM (in response to michallefler)"ronsmitsnl" wrote:
you can in the application.xml file, mark the jar files in several ways:
<ejb>jar file</ejb> for files containing ejb's
<java>jar file</java>for files not containing ejb's
it eats the less then and greater then tags :(<ejb>ejb jar files</ejb> <java>jar file</java>
There, that's better -
3. Re: How can I specify the jars that contain session beans?
michallefler May 16, 2007 12:45 AM (in response to michallefler)Thanks.
Im already using the "ejb" tag inside my "application.xml", but I see that JBoss scans not only the jar that is mentioned inside this tag, but also all the jars that are written inside this jar's classpath (I use the "Class-Path:" option in the jar's MANIFEST.MF).
How can I prevent this from happening?
I don't want them all to be scanned, but only a several jars. -
4. Re: How can I specify the jars that contain session beans?
wolfc May 16, 2007 1:52 PM (in response to michallefler)There is a JBoss specific option for deploying only .ejb3 extensions.
http://jira.jboss.com/jira/browse/EJBTHREE-877
Search for the 'DeployEjb3ExtensionOnly' attribute in the jboss-service.xml of the EJB3 deployer. -
5. Re: How can I specify the jars that contain session beans?
ebross May 23, 2007 10:56 AM (in response to michallefler)If your are deploying *.jar files that already exist in the JBoss deploy lib (default\lib or all\lib), remove them from your ear file. Only deploy your *.ear or *.jar files to JBoss.
Alternatively, you might want to copy third-party jar files to the JBoss deploy\lib and then remove them from yourear file.