aspose file tools*
The moose likes JBoss/WildFly and the fly likes Single persistence.xml with multiple EJB jars in EAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Single persistence.xml with multiple EJB jars in EAR" Watch "Single persistence.xml with multiple EJB jars in EAR" New topic
Author

Single persistence.xml with multiple EJB jars in EAR

Anurag Bhatia
Greenhorn

Joined: May 12, 2009
Posts: 27
I am trying to deploy one persistence.xml in my ear file for all the ejb jars. I have tried placing the persistence.xml in the top level directory of ear file and also in the meta-inf directory in the ear file. Neither one has worked. I am using jboss-4.2.2.GA. Any suggestions?
anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98

You can try using the Class Scoping / Isolation feature provided by Jboss by specifying the <loader-repository> element.

http://community.jboss.org/wiki/classloadingconfiguration

Regards,
Anandraj
http://weblogic-wonders.com


Regards,
Anandraj
http://weblogic-wonders.com
Follow us on facebook:
https://www.facebook.com/weblogicwonders
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Single persistence.xml with multiple EJB jars in EAR