Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Single persistence.xml file with multiple EJB jars

 
Dean Pullen
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Trying to place the persistence.xml file in the ear META-INF, and adding the two EJB jars explicitely, like so:





Unforunately this causes JBoss to error on start, cause:



I'm not sure why this isn't being deployed?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to place the persistence.xml file in the ear META-INF


As far as i know, JBoss does not look in the META-INF folder for the persistence.xml file. The JBoss EJB3 documentation says this:

3.2.2. persistence.xml and .jar files

Entities are placed in a EJB-JAR .jar file or a .jar file all their own. You must also define a persistence.xml file that resides in the META-INF folder of the .jar file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic