[jboss-svn-commits] JBL Code SVN: r29930 - in labs/jbosstm/workspace/whitingjr/trunk/performance: src/main/resources/META-INF and 3 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Nov 3 13:22:21 EST 2009


Author: whitingjr
Date: 2009-11-03 13:22:21 -0500 (Tue, 03 Nov 2009)
New Revision: 29930

Modified:
   labs/jbosstm/workspace/whitingjr/trunk/performance/.classpath
   labs/jbosstm/workspace/whitingjr/trunk/performance/build.xml
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/META-INF/persistence.xml
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/mysql/db-profile.properties
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/transaction-management/jta-managed/default.persistence.properties
   labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/transaction-management/native/default.persistence.properties
Log:
Updated configuration to support transaction management.

Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/.classpath
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/.classpath	2009-11-03 18:21:16 UTC (rev 29929)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/.classpath	2009-11-03 18:22:21 UTC (rev 29930)
@@ -14,6 +14,5 @@
 	<classpathentry kind="lib" path="lib/jboss-ejb3-all.jar"/>
 	<classpathentry kind="lib" path="lib/thirdparty-all.jar"/>
 	<classpathentry kind="lib" path="lib/caveatemptor-jpa.jar"/>
-	<classpathentry kind="lib" path="lib/tomcat-integration.jar"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/build.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/build.xml	2009-11-03 18:21:16 UTC (rev 29929)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/build.xml	2009-11-03 18:22:21 UTC (rev 29930)
@@ -179,9 +179,9 @@
 
 	</target>
 
-	<target name="compile-demo" depends="prepare">
-		<javac srcdir="src/main/java" destdir="${build.classes.dir}" classpathref="demo.compile.classpath" debug="true"/>
-		<javac srcdir="src/test/java" destdir="${build.classes.dir}" classpathref="demo.run.classpath" debug="true"/>
+	<!--target name="compile-demo" depends="prepare">
+		<javac srcdir="src/main/java" destdir="${build.classes.dir}" classpathref="demo.compile.classpath" debug="true" debuglevel="lines"/>
+		<javac srcdir="src/test/java" destdir="${build.classes.dir}" classpathref="demo.run.classpath" debug="true"  debuglevel="lines"/>
 	</target>
 
 	<target name="run-demo-test" depends="compile" description="task to call the Demo application with profiling enabled.">
@@ -194,11 +194,11 @@
 			</classpath>
 			<xmlfileset file="build/classes/testsuite-integration-demo.xml" />
 		</testng>
-	</target>
+	</target-->
 
 	<target name="compile" depends="prepare">
-		<javac srcdir="src/main/java" destdir="${build.classes.dir}" classpathref="demo.compile.classpath" debug="true" />
-		<javac srcdir="src/test/java" destdir="${build.classes.dir}" classpathref="demo.run.classpath" />
+		<javac srcdir="src/main/java" destdir="${build.classes.dir}" classpathref="demo.compile.classpath" debug="true"  debuglevel="lines"/>
+		<javac srcdir="src/test/java" destdir="${build.classes.dir}" classpathref="demo.run.classpath" debug="true" debuglevel="lines"/>
 	</target>
 
 	<target name="profile-ejb3" depends="compile">

Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/META-INF/persistence.xml
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/META-INF/persistence.xml	2009-11-03 18:21:16 UTC (rev 29929)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/META-INF/persistence.xml	2009-11-03 18:22:21 UTC (rev 29930)
@@ -60,6 +60,9 @@
                 it (clean the database) when it is undeployed
            -->
            <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+           
+           <property name="hibernate.session_factory_name" value="java:/persistence/HibernateSessionFactory"/>
+           
 
       </properties>
    </persistence-unit>

Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/mysql/db-profile.properties
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/mysql/db-profile.properties	2009-11-03 18:21:16 UTC (rev 29929)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/database/mysql/db-profile.properties	2009-11-03 18:22:21 UTC (rev 29930)
@@ -1,5 +1,5 @@
 # specify which packages or classes are to be profiled. These will be identical across any database installation
-db-vendor-profiling=com.mysql
+db-vendor-profiling=com.mysql.jdbc.MysqlIO,com.mysql.jdbc.jdbc2.optional.MysqlXADataSource,com.mysql.jdbc.jdbc2.optional.MysqlDataSource,com.mysql.jdbc.jdbc2.optional.MysqlXAConnection
 
 # inclusion xpaths
 db.xslt.xpaths=/*/@db-class='x.x.DriverClass'

Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/transaction-management/jta-managed/default.persistence.properties
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/transaction-management/jta-managed/default.persistence.properties	2009-11-03 18:21:16 UTC (rev 29929)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/transaction-management/jta-managed/default.persistence.properties	2009-11-03 18:22:21 UTC (rev 29930)
@@ -4,3 +4,5 @@
 # bean managed transaction
 hibernate.current_session_context_class=jta
 
+# hibernates transactional strategy class for jta transaction factory
+hibernate.transaction.factory_class=org.hibernate.transaction.JTATransactionFactory

Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/transaction-management/native/default.persistence.properties
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/transaction-management/native/default.persistence.properties	2009-11-03 18:21:16 UTC (rev 29929)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/main/resources/properties/transaction-management/native/default.persistence.properties	2009-11-03 18:22:21 UTC (rev 29930)
@@ -2,4 +2,7 @@
 hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup
 hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider
 # jdbc managed transaction
-hibernate.current_session_context_class=thread
\ No newline at end of file
+hibernate.current_session_context_class=thread
+
+# hibernates transactional strategy class for native
+hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory
\ No newline at end of file



More information about the jboss-svn-commits mailing list