[jboss-cvs] JBossAS SVN: r105051 - branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossts/crash.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu May 20 07:52:45 EDT 2010


Author: istudens at redhat.com
Date: 2010-05-20 07:52:44 -0400 (Thu, 20 May 2010)
New Revision: 105051

Modified:
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossts/crash/CrashHelper.java
Log:
exception is no longer absorbed here, JBQA-3205

Modified: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossts/crash/CrashHelper.java
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossts/crash/CrashHelper.java	2010-05-20 10:17:12 UTC (rev 105050)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossts/crash/CrashHelper.java	2010-05-20 11:52:44 UTC (rev 105051)
@@ -25,6 +25,7 @@
 import java.util.HashSet;
 import java.util.Set;
 
+import javax.ejb.EJBException;
 import javax.ejb.Stateless;
 import javax.ejb.TransactionAttribute;
 import javax.ejb.TransactionAttributeType;
@@ -191,6 +192,8 @@
       catch (SQLException e)
       {
          log.error("Cannot get any XAResource by AppServerJDBCXARecovery", e);
+         // cannot include the original exception into this thrown exception as it requires jdbc drivers also on the client side
+         throw new EJBException("Cannot get any XAResource by AppServerJDBCXARecovery: " + e.getMessage());
       }
 
       return xids;




More information about the jboss-cvs-commits mailing list