• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Single persistence.xml with multiple EJB jars in EAR

 
Anurag Bhatia
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 98
Oracle Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic