[seam-commits] Seam SVN: r9646 - trunk/examples/jee5/booking/resources/META-INF.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Nov 25 18:18:35 EST 2008


Author: dan.j.allen
Date: 2008-11-25 18:18:34 -0500 (Tue, 25 Nov 2008)
New Revision: 9646

Modified:
   trunk/examples/jee5/booking/resources/META-INF/persistence.xml
Log:
don't need to specify transaction manager lookup when container is starting PU

Modified: trunk/examples/jee5/booking/resources/META-INF/persistence.xml
===================================================================
--- trunk/examples/jee5/booking/resources/META-INF/persistence.xml	2008-11-25 23:15:42 UTC (rev 9645)
+++ trunk/examples/jee5/booking/resources/META-INF/persistence.xml	2008-11-25 23:18:34 UTC (rev 9646)
@@ -5,30 +5,20 @@
              version="1.0">
    <persistence-unit name="bookingDatabase">
       <provider>org.hibernate.ejb.HibernatePersistence</provider>
+      <!-- Change to java:/DefaultDS when deploying to JBoss AS 5 -->
       <jta-data-source>jdbc/__default</jta-data-source>
       <properties>
-         <!-- The following two properties are for GlassFish -->
-         <property name="hibernate.dialect" 
-              value="org.hibernate.dialect.DerbyDialect"/>
-         <property name="hibernate.transaction.manager_lookup_class" 
-            value="org.hibernate.transaction.SunONETransactionManagerLookup"/>
-        
-              
-         <!-- The following three properties are OC4J -->
-         <!-- 
-         <property name="hibernate.dialect" 
-                   value="org.hibernate.dialect.HSQLDialect"/>
-         <property name="hibernate.query.factory_class" 
-            value="org.hibernate.hql.classic.ClassicQueryTranslatorFactory"/>
-         <property name="hibernate.transaction.manager_lookup_class" 
-            value="org.hibernate.transaction.OrionTransactionManagerLookup"/>
-         -->
-         
          <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
          <property name="hibernate.show_sql" value="true"/>
          <property name="hibernate.transaction.flush_before_completion" value="true"/>
-         <property name="hibernate.cache.provider_class" 
-              value="org.hibernate.cache.HashtableCacheProvider"/>
+         <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
+         <!-- We don't need to specify a transaction manager lookup class for Hibernate
+              when the Java EE container loads the persistence unit (it gets inherited) -->
+
+         <!-- The following property is needed for OC4J -->
+         <!-- 
+         <property name="hibernate.query.factory_class" value="org.hibernate.hql.classic.ClassicQueryTranslatorFactory"/>
+         -->
       </properties>
    </persistence-unit>
 </persistence>




More information about the seam-commits mailing list