protected Reapable doCreateConnectionProxy() throws CreateConnectionException { if ( LOGGER.isTraceEnabled() ) LOGGER.logTrace ( this + ": creating connection proxy..." ); JdbcConnectionProxyHelper.setIsolationLevel ( connection , getDefaultIsolationLevel() ); return AtomikosConnectionProxy.newInstance ( connection , sessionHandleState); }
protected Reapable doCreateConnectionProxy() throws CreateConnectionException { Reapable ret = null; if ( canBeRecycledForCallingThread() ) { if ( LOGGER.isTraceEnabled() ) LOGGER.logTrace ( this + ": reusing existing proxy for thread..." ); ret = getCurrentConnectionProxy(); DynamicProxy dproxy = ( DynamicProxy ) ret; AtomikosThreadLocalConnection previous = (AtomikosThreadLocalConnection) dproxy.getInvocationHandler(); //DON't increment use count: see case 27793 //previous.incUseCount(); } else { if ( LOGGER.isTraceEnabled() ) LOGGER.logTrace ( this + ": creating connection proxy..." ); JdbcConnectionProxyHelper.setIsolationLevel ( connection, getDefaultIsolationLevel() ); ret = ( Reapable ) AtomikosThreadLocalConnection.newInstance ( this , props.getUniqueResourceName() ); } return ret; }