This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic