List of usage examples for java.sql Connection setClientInfo
void setClientInfo(Properties properties) throws SQLClientInfoException;
From source file:com.adaptris.jdbc.connection.FailoverDatasourceTest.java
@Test public void testClientInfo() throws Exception { Connection conn = new MyProxy(); try {/* w w w . j a va 2 s .com*/ try { conn.setClientInfo(conn.getClientInfo()); } catch (SQLException e) { } try { conn.setClientInfo("hello", "world"); conn.getClientInfo("hello"); } catch (SQLException e) { } } finally { JdbcUtil.closeQuietly(conn); } conn = new FailingProxy(); try { try { conn.setClientInfo(conn.getClientInfo()); } catch (SQLException e) { } try { conn.setClientInfo("hello", "world"); conn.getClientInfo("hello"); } catch (SQLException e) { } } finally { JdbcUtil.closeQuietly(conn); } }