0 Replies Latest reply on Mar 13, 2015 1:53 PM by Peter Morgan

    is a persistence unit named "primary" required?

    Peter Morgan Newbie


      I changed a persistence-unit name=primary to name=quickstart.


      In my server console when I start the server I still see

      13:21:15,946 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for primary

      13:21:15,946 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011401: Read persistence.xml for quickstart

      and other INFO logs for both primary and quickstart.


      Why am I still seeing the the old persistence unit being created? Is there a requirement for a PU named "primary"?  Is this JBoss looking for the PU or something in JPA or Hibernate?



      I'm developing in JBoss Developer Studio on jboss-eap-6.2.0

      I'm converting a quickstart app created by the Maven archetype org.jboss.spec.archetypes:jboss-javaee6-ear-webapp. into a real web app with an SQL Server back end. The change in persistence unit name is just a step in the process of adding a new persistence unit. I'm taking baby steps, to learn JPA & Hibernate as I go.