[seam-commits] Seam SVN: r11401 - in branches/enterprise/JBPAPP_5_0/seam-gen/resources: WEB-INF and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Aug 18 11:43:09 EDT 2009


Author: manaRH
Date: 2009-08-18 11:43:09 -0400 (Tue, 18 Aug 2009)
New Revision: 11401

Modified:
   branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-dev-war.xml
   branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-prod-war.xml
   branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-test-war.xml
   branches/enterprise/JBPAPP_5_0/seam-gen/resources/WEB-INF/components-war.xml
Log:
JBPAPP-2493

Modified: branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-dev-war.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-dev-war.xml	2009-08-18 15:00:22 UTC (rev 11400)
+++ branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-dev-war.xml	2009-08-18 15:43:09 UTC (rev 11401)
@@ -13,8 +13,7 @@
          <property name="hibernate.hbm2ddl.auto" value="@hbm2ddl@"/>
          <property name="hibernate.show_sql" value="true"/>
          <property name="hibernate.format_sql" value="true"/>@catalogProperty@@schemaProperty@
-         <!-- Only relevant if Seam is loading the persistence unit (Java SE bootstrap) -->
-         <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
+         <property name="jboss.entity.manager.factory.jndi.name" value="java:/@projectName at EntityManagerFactory"/>
       </properties>
    </persistence-unit>
     

Modified: branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-prod-war.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-prod-war.xml	2009-08-18 15:00:22 UTC (rev 11400)
+++ branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-prod-war.xml	2009-08-18 15:43:09 UTC (rev 11401)
@@ -12,8 +12,7 @@
          <property name="hibernate.dialect" value="@hibernate.dialect@"/>
          <property name="hibernate.hbm2ddl.auto" value="validate"/>
          <property name="hibernate.jdbc.batch_size" value="20"/>@catalogProperty@@schemaProperty@
-         <!-- Only relevant if Seam is loading the persistence unit (Java SE bootstrap) -->
-         <property name="hibernate.transaction.manager_lookup_class" value="@transactionManagerLookupClass@"/>
+         <property name="jboss.entity.manager.factory.jndi.name" value="java:/@projectName at EntityManagerFactory"/>
       </properties>
    </persistence-unit>
     

Modified: branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-test-war.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-test-war.xml	2009-08-18 15:00:22 UTC (rev 11400)
+++ branches/enterprise/JBPAPP_5_0/seam-gen/resources/META-INF/persistence-test-war.xml	2009-08-18 15:43:09 UTC (rev 11401)
@@ -12,7 +12,7 @@
          <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
          <property name="hibernate.show_sql" value="true"/>
          <property name="hibernate.cache.use_second_level_cache" value="false"/>
-         <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
+         <property name="jboss.entity.manager.factory.jndi.name" value="java:/@projectName at EntityManagerFactory"/>
       </properties>
    </persistence-unit>
     

Modified: branches/enterprise/JBPAPP_5_0/seam-gen/resources/WEB-INF/components-war.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/seam-gen/resources/WEB-INF/components-war.xml	2009-08-18 15:00:22 UTC (rev 11400)
+++ branches/enterprise/JBPAPP_5_0/seam-gen/resources/WEB-INF/components-war.xml	2009-08-18 15:43:09 UTC (rev 11401)
@@ -28,12 +28,10 @@
    <!-- Make sure this URL pattern is the same as that used by the Faces Servlet -->
    <web:hot-deploy-filter url-pattern="*.seam"/>
 
-   <persistence:entity-manager-factory name="entityManagerFactory"
-                      persistence-unit-name="@projectName@"/>
+   <persistence:managed-persistence-context
+		name="entityManager" auto-create="true" 
+		persistence-unit-jndi-name="java:/@projectName at EntityManagerFactory"/>
 
-   <persistence:managed-persistence-context name="entityManager" auto-create="true"
-                          entity-manager-factory="#{entityManagerFactory}"/>
-
    <drools:rule-base name="securityRules">
       <drools:rule-files><value>/security.drl</value></drools:rule-files>
    </drools:rule-base>



More information about the seam-commits mailing list