1 Reply Latest reply on Dec 3, 2009 8:26 AM by jaikiran

    2 persistence.xml files in EAR archive

    longbeach

      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.