736737738739740741742743744745746
return clf.createConnectionListener(mc, this); } catch (ResourceException re) { statistics.deltaDestroyedCount(); mc.destroy(); throw re; } } /**
760761762763764765766767768769770
cl.setState(ConnectionState.DESTROYED); ManagedConnection mc = cl.getManagedConnection(); try { mc.destroy(); } catch (Throwable t) { log.debug("Exception destroying ManagedConnection " + cl, t); }
787788789790791792793794795796797
813814815816817818819820821822823
133134135136137138139140141142143
public void connectionErrorOccurred(ConnectionEvent event) { ManagedConnection conn = (ManagedConnection) event.getSource(); try { conn.destroy(); threadConnectionCache.get().removeConnection(conn); } catch (ResourceException re) { }
844845846847848849850851852853854
} catch (ResourceException re) { if (statistics.isEnabled()) statistics.deltaDestroyedCount(); mc.destroy(); throw re; } } /**
871872873874875876877878879880881
764765766767768769770771772773774