seeorg.jboss.resource.adapter.jdbc.ValidConnectionChecker#isValidConnection(java.sql.Connection) SQLException ex = null; Statement stmt = null; try { stmt = cn.createStatement(); stmt.execute(""); } catch (SQLException e) { ex = e; } finally { if (stmt != null) { try { stmt.close(); } catch (Exception e) { } } } return ex;
SQLException ex = null; Statement stmt = null; try { stmt = cn.createStatement(); stmt.execute(""); } catch (SQLException e) { ex = e; } finally { if (stmt != null) { try { stmt.close(); } catch (Exception e) { } } } return ex;