[jboss-cvs] JBossAS SVN: r112322 - projects/jboss-jca/branches/Branch_1_0/adapters/src/main/java/org/jboss/jca/adapters/jdbc/extensions/mysql.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 12 16:11:43 EDT 2011
Author: jesper.pedersen
Date: 2011-10-12 16:11:43 -0400 (Wed, 12 Oct 2011)
New Revision: 112322
Modified:
projects/jboss-jca/branches/Branch_1_0/adapters/src/main/java/org/jboss/jca/adapters/jdbc/extensions/mysql/MySQLValidConnectionChecker.java
Log:
[JBJCA-677] MySQLValidConnectionChecker throws IAE
Modified: projects/jboss-jca/branches/Branch_1_0/adapters/src/main/java/org/jboss/jca/adapters/jdbc/extensions/mysql/MySQLValidConnectionChecker.java
===================================================================
--- projects/jboss-jca/branches/Branch_1_0/adapters/src/main/java/org/jboss/jca/adapters/jdbc/extensions/mysql/MySQLValidConnectionChecker.java 2011-10-12 20:10:27 UTC (rev 112321)
+++ projects/jboss-jca/branches/Branch_1_0/adapters/src/main/java/org/jboss/jca/adapters/jdbc/extensions/mysql/MySQLValidConnectionChecker.java 2011-10-12 20:11:43 UTC (rev 112322)
@@ -55,8 +55,6 @@
private boolean driverHasPingMethod;
- private final Integer pingTimeOut = null;
-
private transient Method ping;
/**
@@ -84,11 +82,9 @@
//if there is a ping method then use it, otherwise just use a 'SELECT 1' statement
if (driverHasPingMethod)
{
- Object[] params = new Object[]{pingTimeOut};
-
try
{
- ping.invoke(c, params);
+ ping.invoke(c, (Object[])null);
}
catch (Exception e)
{
@@ -157,7 +153,7 @@
Class<?> mysqlConnection = Class.forName("com.mysql.jdbc.Connection", true, getClass().getClassLoader());
- ping = mysqlConnection.getMethod("ping", new Class<?>[] {});
+ ping = mysqlConnection.getMethod("ping", (Class[])null);
if (ping != null)
{
@@ -183,14 +179,4 @@
throw ioe;
}
}
-
- /**
- * Get the pingTimeOut.
- *
- * @return the pingTimeOut.
- */
- public final Integer getPingTimeOut()
- {
- return pingTimeOut;
- }
}
More information about the jboss-cvs-commits
mailing list