Package com.atomikos.icatch

Examples of com.atomikos.icatch.SubTxAwareParticipant


    private void rollback() throws IllegalStateException, SysException
    {
       Stack errors = new Stack ();

         for ( int i = 0; i < subtxawares_.size (); i++ ) {
           SubTxAwareParticipant subtxaware = (SubTxAwareParticipant) subtxawares_
           .get ( i );
           subtxaware.rolledback ( ct_ );
           // NOTE: this can NOT be done by coordinator imp.,
           // since that one will not know which tx is locally done!
         }

         // Added (bug discovered by MM):
View Full Code Here


        }

        // for loop to make sure that new registrations are possible
        // during callback
        for ( int i = 0; i < subtxawares_.size (); i++ ) {
          SubTxAwareParticipant subtxaware = (SubTxAwareParticipant) subtxawares_
          .get ( i );
          subtxaware.committed ( ct_ );
          // NOTE: this can NOT be done by coordinator imp.,
          // since that one will not know which tx is locally done!
        }

        // change state handler to avoid other, concurrent modifications
View Full Code Here

    private void rollback() throws IllegalStateException, SysException
    {
       Stack errors = new Stack ();

         for ( int i = 0; i < subtxawares_.size (); i++ ) {
           SubTxAwareParticipant subtxaware = (SubTxAwareParticipant) subtxawares_.get ( i );
           subtxaware.rolledback ( ct_ );
         }

         Enumeration enumm = null;
         Extent extent = ct_.getExtent ();
         if ( extent != null ) {
View Full Code Here

          throw new RollbackException ( "The transaction was set to rollback only" , cause );
        }

        // for loop to make sure that new registrations are possible during callback
        for ( int i = 0; i < subtxawares_.size (); i++ ) {
          SubTxAwareParticipant subtxaware = (SubTxAwareParticipant) subtxawares_.get ( i );
          subtxaware.committed ( ct_ );
        }

        ct_.localSetTransactionStateHandler ( new TxTerminatedStateHandler ( ct_, this, true ) );

View Full Code Here

    private void rollback() throws IllegalStateException, SysException
    {
       Stack errors = new Stack ();

         for ( int i = 0; i < subtxawares_.size (); i++ ) {
           SubTxAwareParticipant subtxaware = (SubTxAwareParticipant) subtxawares_
           .get ( i );
           subtxaware.rolledback ( ct_ );
           // NOTE: this can NOT be done by coordinator imp.,
           // since that one will not know which tx is locally done!
         }

         // Added (bug discovered by MM):
View Full Code Here

        }

        // for loop to make sure that new registrations are possible
        // during callback
        for ( int i = 0; i < subtxawares_.size (); i++ ) {
          SubTxAwareParticipant subtxaware = (SubTxAwareParticipant) subtxawares_
          .get ( i );
          subtxaware.committed ( ct_ );
          // NOTE: this can NOT be done by coordinator imp.,
          // since that one will not know which tx is locally done!
        }

        // change state handler to avoid other, concurrent modifications
View Full Code Here

    private void rollback() throws IllegalStateException, SysException
    {
       Stack errors = new Stack ();

         for ( int i = 0; i < subtxawares_.size (); i++ ) {
           SubTxAwareParticipant subtxaware = (SubTxAwareParticipant) subtxawares_.get ( i );
           subtxaware.rolledback ( ct_ );
         }

         Enumeration enumm = null;
         Extent extent = ct_.getExtent ();
         if ( extent != null ) {
View Full Code Here

          throw new RollbackException ( "The transaction was set to rollback only" );
        }

        // for loop to make sure that new registrations are possible during callback
        for ( int i = 0; i < subtxawares_.size (); i++ ) {
          SubTxAwareParticipant subtxaware = (SubTxAwareParticipant) subtxawares_.get ( i );
          subtxaware.committed ( ct_ );
        }

        ct_.localSetTransactionStateHandler ( new TxTerminatedStateHandler ( ct_, this, true ) );

View Full Code Here

TOP

Related Classes of com.atomikos.icatch.SubTxAwareParticipant

Copyright © 2018 www.massapicom. 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.