Examples of SessionHandleState


Examples of com.atomikos.datasource.xa.session.SessionHandleState

  private AtomikosJmsXaSessionProxy ( XASession s , XATransactionalResource jmsTransactionalResource ,
      SessionHandleStateChangeListener pooledConnection , SessionHandleStateChangeListener connectionProxy )
  {
    this.delegate = s;
    this.jmsTransactionalResource = jmsTransactionalResource;
    this.state = new SessionHandleState ( jmsTransactionalResource , s.getXAResource() );
    state.registerSessionHandleStateChangeListener ( pooledConnection );
    state.registerSessionHandleStateChangeListener ( connectionProxy );
    state.registerSessionHandleStateChangeListener ( this );
    //for JMS, session borrowed corresponds to creation of the session
    state.notifySessionBorrowed();
View Full Code Here

Examples of com.atomikos.datasource.xa.session.SessionHandleState

  private AtomikosJmsXaSessionProxy ( XASession s , XATransactionalResource jmsTransactionalResource ,
      SessionHandleStateChangeListener pooledConnection , SessionHandleStateChangeListener connectionProxy )
  {
    this.delegate = s;
    this.jmsTransactionalResource = jmsTransactionalResource;
    this.state = new SessionHandleState ( jmsTransactionalResource , s.getXAResource() );
    state.registerSessionHandleStateChangeListener ( pooledConnection );
    state.registerSessionHandleStateChangeListener ( connectionProxy );
    state.registerSessionHandleStateChangeListener ( this );
    //for JMS, session borrowed corresponds to creation of the session
    state.notifySessionBorrowed();
View Full Code Here

Examples of com.atomikos.datasource.xa.session.SessionHandleState

  throws SQLException
  {
    super ( props );
    this.xaConnection = xaConnection;
    this.connection = xaConnection.getConnection();
    this.sessionHandleState = new SessionHandleState ( jdbcTransactionalResource, xaConnection.getXAResource());
    sessionHandleState.registerSessionHandleStateChangeListener(new SessionHandleStateChangeListener() {
      public void onTerminated() {
        if ( Configuration.isDebugLoggingEnabled() ) Configuration.logDebug( "SessionHandleState terminated, firing XPooledConnectionTerminated event for " + AtomikosXAPooledConnection.this);
        updateLastTimeReleased();
        fireOnXPooledConnectionTerminated();
View Full Code Here

Examples of com.atomikos.datasource.xa.session.SessionHandleState

  throws SQLException
  {
    super ( props );
    this.xaConnection = xaConnection;
    this.connection = xaConnection.getConnection();
    this.sessionHandleState = new SessionHandleState ( jdbcTransactionalResource, xaConnection.getXAResource());
    sessionHandleState.registerSessionHandleStateChangeListener(new SessionHandleStateChangeListener() {
      public void onTerminated() {
        if ( LOGGER.isDebugEnabled() ) LOGGER.logDebug( "SessionHandleState terminated, firing XPooledConnectionTerminated event for " + AtomikosXAPooledConnection.this);
        updateLastTimeReleased();
        fireOnXPooledConnectionTerminated();
View Full Code Here

Examples of com.atomikos.datasource.xa.session.SessionHandleState

  private AtomikosJmsXaSessionProxy ( XASession s , XATransactionalResource jmsTransactionalResource ,
      SessionHandleStateChangeListener pooledConnection , SessionHandleStateChangeListener connectionProxy )
  {
    this.delegate = s;
    this.jmsTransactionalResource = jmsTransactionalResource;
    this.state = new SessionHandleState ( jmsTransactionalResource , s.getXAResource() );
    state.registerSessionHandleStateChangeListener ( pooledConnection );
    state.registerSessionHandleStateChangeListener ( connectionProxy );
    state.registerSessionHandleStateChangeListener ( this );
    //for JMS, session borrowed corresponds to creation of the session
    state.notifySessionBorrowed();
View Full Code Here

Examples of com.atomikos.datasource.xa.session.SessionHandleState

  throws SQLException
  {
    super ( props );
    this.xaConnection = xaConnection;
    this.connection = xaConnection.getConnection();
    this.sessionHandleState = new SessionHandleState ( jdbcTransactionalResource, xaConnection.getXAResource());
    sessionHandleState.registerSessionHandleStateChangeListener(new SessionHandleStateChangeListener() {
      public void onTerminated() {
        Configuration.logDebug( "SessionHandleState terminated, firing XPooledConnectionTerminated event for " + AtomikosXAPooledConnection.this);
        updateLastTimeReleased();
        fireOnXPooledConnectionTerminated();
View Full Code Here

Examples of com.atomikos.datasource.xa.session.SessionHandleState

  private AtomikosJmsXaSessionProxy ( XASession s , XATransactionalResource jmsTransactionalResource ,
      SessionHandleStateChangeListener pooledConnection , SessionHandleStateChangeListener connectionProxy )
  {
    this.delegate = s;
    this.jmsTransactionalResource = jmsTransactionalResource;
    this.state = new SessionHandleState ( jmsTransactionalResource , s.getXAResource() );
    state.registerSessionHandleStateChangeListener ( pooledConnection );
    state.registerSessionHandleStateChangeListener ( connectionProxy );
    state.registerSessionHandleStateChangeListener ( this );
    //for JMS, session borrowed corresponds to creation of the session
    state.notifySessionBorrowed();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.