[jboss-svn-commits] JBL Code SVN: r32953 - labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/org/jboss/jbossts/performance/task.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed May 19 06:50:45 EDT 2010
Author: whitingjr
Date: 2010-05-19 06:50:45 -0400 (Wed, 19 May 2010)
New Revision: 32953
Modified:
labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/org/jboss/jbossts/performance/task/RecursiveTask.java
Log:
Changed the down casting to a type that does not depend on xa being used.
Modified: labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/org/jboss/jbossts/performance/task/RecursiveTask.java
===================================================================
--- labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/org/jboss/jbossts/performance/task/RecursiveTask.java 2010-05-19 10:49:19 UTC (rev 32952)
+++ labs/jbosstm/workspace/whitingjr/trunk/performance/src/test/java/org/jboss/jbossts/performance/task/RecursiveTask.java 2010-05-19 10:50:45 UTC (rev 32953)
@@ -31,6 +31,7 @@
import org.jboss.jbossts.performance.configuration.JPAConfiguration;
import org.jboss.jbossts.performance.resource.SynchronizeTask;
import org.jboss.jbossts.performance.xa.managed.XAWrappedConnection;
+import org.jboss.resource.adapter.jdbc.WrappedConnection;
import org.testng.Assert;
/**
@@ -79,8 +80,8 @@
* this thread to execute the task. nano seconds */
this.taskConfiguration.getTestConfiguration().getResults().add(( totalTime.toLong()/this.recurseCount));// serialized modification, insertion order not important
}
- DbUtils.closeQuietly(((XAWrappedConnection)this.taskConfiguration.getConnectionHandler().getConnectionA()).getWrappedConnection());//really release the connection
- DbUtils.closeQuietly(((XAWrappedConnection)this.taskConfiguration.getConnectionHandler().getConnectionB()).getWrappedConnection());//really release the connection
+ DbUtils.closeQuietly(((WrappedConnection)this.taskConfiguration.getConnectionHandler().getConnectionA()).getUnderlyingConnection());//really release the connection
+ DbUtils.closeQuietly(((WrappedConnection)this.taskConfiguration.getConnectionHandler().getConnectionB()).getUnderlyingConnection());//really release the connection
this.taskConfiguration.getTestConfiguration().getCompletionBarrier().await();// await all threads have finished
}
}
More information about the jboss-svn-commits
mailing list