JBoss Community

Re: Persistence unit issues when migrating to JBOSS 5.1.0

created by Lars Bohl in EJB3 - View the full discussion

Sorry for waking up this old thread. I have a question about this:

For the record - my statement is incorrect. The EJB3 spec doesn't _not_ specify that the persistence.xml can be placed in the META-INF of the .ear. According to the spec, for scoping a persistence unit at ear level, the persistence.xml should be packaged in:

 

  • META-INF of a jar file in the root of the EAR
or
  • META-INF of a jar file in the EAR library directory

 

 

I'm not sure which document is meant with "EJB3 spec", could you please post a link? If you meant this document http://download.oracle.com/javaee/6/api/ .., I can't find any deployment rules for .ear files in there.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community