File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
jQuery in Action, 2nd edition
 
subject: Single persistence.xml with multiple EJB jars in EAR
 
Similar Threads
Can you store persistence.xml in an ear file?
Problem with entity bean
EAR deployment problem Weblogic Migration... additional resources needed on classpath
log4j.properties in ear file
MAVEN EAR problem