List of usage examples for javax.sql XAConnection addConnectionEventListener
void addConnectionEventListener(ConnectionEventListener listener);
PooledConnection
object. From source file:org.enhydra.jdbc.pool.StandardXAPoolDataSource.java
public GenerationObject create(String _user, String _password) throws SQLException { GenerationObject genObject;//from ww w .ja v a2s . co m XAConnection xaCon = xads.getXAConnection(_user, _password); // get the xa connection xaCon.addConnectionEventListener(this); // add it to the event listener log.debug("StandardXAPoolDataSource:create create a object for the pool"); genObject = new GenerationObject(xaCon, pool.getGeneration(), _user, _password); return genObject; }