public synchronized void notifySessionBorrowed(){
  if (LOGGER.isTraceEnabled())   LOGGER.logTrace(this + ": notifySessionBorrowed");
  currentContext=new TransactionContext(resource,xaResource);
  allContexts.add(currentContext);
  closed=false;
}

public synchronized void notifySessionBorrowed ( ) { if ( LOGGER . isTraceEnabled ( ) ) LOGGER . logTrace ( this + ": notifySessionBorrowed" ) ; currentContext = new TransactionContext ( resource , xaResource ) ; allContexts . add ( currentContext ) ; closed = false ; }
notification that the session was gotten from the pool .
