[jboss-cvs] JBossAS SVN: r110730 - branches/JBPAPP_5_1/connector/src/main/org/jboss/resource/connectionmanager.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 22 09:14:18 EST 2011


Author: jesper.pedersen
Date: 2011-02-22 09:14:17 -0500 (Tue, 22 Feb 2011)
New Revision: 110730

Modified:
   branches/JBPAPP_5_1/connector/src/main/org/jboss/resource/connectionmanager/ManagedConnectionFactoryDeployment.java
Log:
[JBPAPP-5292] If JDBC and isValid() isnt implemented force a recreate

Modified: branches/JBPAPP_5_1/connector/src/main/org/jboss/resource/connectionmanager/ManagedConnectionFactoryDeployment.java
===================================================================
--- branches/JBPAPP_5_1/connector/src/main/org/jboss/resource/connectionmanager/ManagedConnectionFactoryDeployment.java	2011-02-21 21:26:23 UTC (rev 110729)
+++ branches/JBPAPP_5_1/connector/src/main/org/jboss/resource/connectionmanager/ManagedConnectionFactoryDeployment.java	2011-02-22 14:14:17 UTC (rev 110730)
@@ -878,6 +878,16 @@
                   return true;
                }
             }
+            catch (InvocationTargetException ite)
+            {
+               if (log.isDebugEnabled())
+               {
+                  log.debug("Unable to execute isValid() due to " + ite.getMessage());
+                  log.debug("Forcing recreate of managed connection");
+               }
+
+               return true;
+            }
             catch (Throwable t)
             {
                log.warn("Error during recovery connection isValid", t);



More information about the jboss-cvs-commits mailing list