[jboss-cvs] JBoss Messaging SVN: r2048 - trunk/src/main/org/jboss/messaging/core/plugin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jan 25 00:42:28 EST 2007
Author: clebert.suconic at jboss.com
Date: 2007-01-25 00:42:28 -0500 (Thu, 25 Jan 2007)
New Revision: 2048
Modified:
trunk/src/main/org/jboss/messaging/core/plugin/JDBCPersistenceManager.java
Log:
Fixing intermitent errors on start on testsuite
http://jira.jboss.com/jira/browse/JBMESSAGING-778
Modified: trunk/src/main/org/jboss/messaging/core/plugin/JDBCPersistenceManager.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/plugin/JDBCPersistenceManager.java 2007-01-25 05:24:43 UTC (rev 2047)
+++ trunk/src/main/org/jboss/messaging/core/plugin/JDBCPersistenceManager.java 2007-01-25 05:42:28 UTC (rev 2048)
@@ -125,7 +125,9 @@
super.start();
Connection conn = null;
-
+
+ TransactionWrapper wrap = new TransactionWrapper();
+
try
{
conn = ds.getConnection();
@@ -143,12 +145,18 @@
log.warn(warn);
}
}
+ catch (Exception e)
+ {
+ wrap.exceptionOccurred();
+ throw e;
+ }
finally
{
if (conn != null)
{
conn.close();
}
+ wrap.end();
}
//We can't remnove unreliable data since it might introduce holes into the paging order
More information about the jboss-cvs-commits
mailing list