3 Replies Latest reply on Nov 5, 2010 2:06 AM by jaikiran pai

    duplicate persistence unit in same EAR

    Arbi Sookazian Master

      I have an EAR with multiple JARs.  There are two persistence.xml files that have the same persistence unit name.  These PUs are showing up twice in the persistence units section of jmx-console (jboss 4.2.x).

       

      • ear=com.echo.reports.ear-1.5.2-SNAPSHOT.ear,jar=com.echo.billing.reports.dao.gemini-1.5.2-SNAPSHOT.jar,unitName=reports-persistence-unit
      • ear=com.echo.reports.ear-1.5.2-SNAPSHOT.ear,jar=com.echo.billing.reports.services.persistence-1.5.2-SNAPSHOT.jar,unitName=reports-persistence-unit

       

      What negative effect, if any, will this have on my app?  For example, during deployment the Seam container rejects Seam components with the same name.  I'm not sure if JBoss is doing that or not.  thx.