[jboss-user] [EJB 3.0 Users] - 2 persistence.xml files in EAR archive

longbeach do-not-reply at jboss.com
Wed Dec 2 06:03:35 EST 2009


Hi,
i have 2 persistence.xml files in my EAR archive.
I have a web project, a client project, an EJB project.

The 2 files are in the web project and in the EJB project :

  | WEB_PROJECT_NAME/META-INF/persistence.xml
  | EJB_PROJECT_NAME/META-INF/persistence.xml
  | 
  | 
  | If I use a persistence unit in the web project, where will the container look for it first ?
  | 
  | And in general, what are the rules regarding persistence.xml file research in JBoss 5.1.0 GA ?
  | 
  | Thanks for helping.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268473#4268473

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268473



More information about the jboss-user mailing list