/** * @see javax.sql.ConnectionPoolDataSource#getPooledConnection() */ public PooledConnection getPooledConnection () throws SQLException { checkSetup (); PooledConnection ret = null; XAConnection xaconn = xads_.getXAConnection (); ret = new ExternalXAPooledConnectionImp ( xaconn, getTransactionalResource (), getLogWriter () ); return ret; }
/** * @see javax.sql.ConnectionPoolDataSource#getPooledConnection(java.lang.String, * java.lang.String) */ public PooledConnection getPooledConnection ( String user , String pw ) throws SQLException { PooledConnection ret = null; checkSetup (); XAConnection xaconn = xads_.getXAConnection ( user, pw ); ret = new ExternalXAPooledConnectionImp ( xaconn, getTransactionalResource (), getLogWriter () ); return ret; }