[Jboss-cvs] JBossAS SVN: r54926 - trunk/connector/src/main/org/jboss/resource/adapter/jdbc

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jul 31 14:56:03 EDT 2006


Author: weston.price at jboss.com
Date: 2006-07-31 14:56:02 -0400 (Mon, 31 Jul 2006)
New Revision: 54926

Modified:
   trunk/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java
Log:
[JBAS-3359] Stale connection implementation.

Modified: trunk/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java
===================================================================
--- trunk/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java	2006-07-31 18:55:43 UTC (rev 54925)
+++ trunk/connector/src/main/org/jboss/resource/adapter/jdbc/WrappedConnection.java	2006-07-31 18:56:02 UTC (rev 54926)
@@ -549,12 +549,20 @@
     */
    protected SQLException checkException(Throwable t) throws SQLException
    {
+      Throwable result = null;
+
       if (mc != null)
-         mc.connectionError(t);
-      if (t instanceof SQLException)
-         throw (SQLException) t;
+         result = mc.connectionError(t);
+
+      if (result instanceof SQLException)
+      {
+         throw (SQLException) result;
+      }
       else
-         throw new NestedSQLException("Error", t);
+      {
+         throw new NestedSQLException("Error", result);
+      }
+      
    }
 
    int getTrackStatements()




More information about the jboss-cvs-commits mailing list