Package com.atomikos.icatch

Examples of com.atomikos.icatch.TransactionControl


    public void commit () throws HeurRollbackException, HeurMixedException,
            HeurHazardException, SysException, java.lang.SecurityException,
            RollbackException
    {
        Stack errors = new Stack ();
        TransactionControl control = transaction_.getTransactionControl ();

        transaction_.doCommit ();

        // SET SIBLING INFO: NEEDED FOR
        // INCOMING 1PC REQUEST FROM
        // REMOTE CLIENT
        Dictionary cascadelist = control.getExtent ().getRemoteParticipants ();
        coordinator_.setGlobalSiblingCount ( coordinator_
                .getLocalSiblingCount () );
        coordinator_.setCascadeList ( cascadelist );

        if ( transaction_.isRoot () ) {
View Full Code Here


        // such as in MQSeries
        // xaresource_ = resource.getXAResource();
        // re-added xaresource_ setting here, because for JMS
        // there is no threading and no thread-surpassing
        // reuse -> we can use the same and set it here.
        TransactionControl control = transaction.getTransactionControl ();
        // null for some testing programs
        if ( control != null ) {
            timeout_ = (int) transaction.getTransactionControl ().getTimeout () / 1000;

        }
View Full Code Here

    }


  private void setSiblingInfoForIncoming1pcRequestFromRemoteClient() {
    TransactionControl control = transaction_.getTransactionControl();
    Dictionary cascadelist = control.getExtent ().getRemoteParticipants ();
        coordinator_.setGlobalSiblingCount ( coordinator_
                .getLocalSiblingCount () );
        coordinator_.setCascadeList ( cascadelist );
  }
View Full Code Here

    }

    XAResourceTransaction(XATransactionalResource resource, CompositeTransaction transaction, String root)
    {
        setResource ( resource );
        TransactionControl control = transaction.getTransactionControl ();
        if ( control != null ) {
            timeout_ = (int) transaction.getTransactionControl ().getTimeout () / 1000;

        }
        tid_ = transaction.getTid ();
View Full Code Here

            return Status.STATUS_UNKNOWN;
    }
   
    private CompositeTerminator getTerminator()
    {
      TransactionControl control =  ct_.getTransactionControl ();
        if ( control == null ) {
          String msg = "No TransactionControl object found?";
          Configuration.logWarning ( msg );
          throw new SecurityException ( msg );
        }
           
        CompositeTerminator term = control.getTerminator ();
        if ( term == null ) {
          String msg = "No TransactionTerminator object found?";
          Configuration.logWarning ( msg );
          throw new SecurityException ( msg );
        }
View Full Code Here

        // such as in MQSeries
        // xaresource_ = resource.getXAResource();
        // re-added xaresource_ setting here, because for JMS
        // there is no threading and no thread-surpassing
        // reuse -> we can use the same and set it here.
        TransactionControl control = transaction.getTransactionControl ();
        // null for some testing programs
        if ( control != null ) {
            timeout_ = (int) transaction.getTransactionControl ().getTimeout () / 1000;

        }
View Full Code Here

    public void commit () throws HeurRollbackException, HeurMixedException,
            HeurHazardException, SysException, java.lang.SecurityException,
            RollbackException
    {
        Stack errors = new Stack ();
        TransactionControl control = transaction_.getTransactionControl ();

        transaction_.doCommit ();

        // SET SIBLING INFO: NEEDED FOR
        // INCOMING 1PC REQUEST FROM
        // REMOTE CLIENT
        Dictionary cascadelist = control.getExtent ().getRemoteParticipants ();
        coordinator_.setGlobalSiblingCount ( coordinator_
                .getLocalSiblingCount () );
        coordinator_.setCascadeList ( cascadelist );

        if ( transaction_.isRoot () ) {
View Full Code Here

    }

    XAResourceTransaction(XATransactionalResource resource, CompositeTransaction transaction, String root)
    {
        setResource ( resource );
        TransactionControl control = transaction.getTransactionControl ();
        if ( control != null ) {
            timeout_ = (int) transaction.getTransactionControl ().getTimeout () / 1000;

        }
        tid_ = transaction.getTid ();
View Full Code Here

            return Status.STATUS_UNKNOWN;
    }
   
    private CompositeTerminator getTerminator()
    {
      TransactionControl control =  ct_.getTransactionControl ();
        if ( control == null ) {
          String msg = "No TransactionControl object found?";
          Configuration.logWarning ( msg );
          throw new SecurityException ( msg );
        }
           
        CompositeTerminator term = control.getTerminator ();
        if ( term == null ) {
          String msg = "No TransactionTerminator object found?";
          Configuration.logWarning ( msg );
          throw new SecurityException ( msg );
        }
View Full Code Here

        // such as in MQSeries
        // xaresource_ = resource.getXAResource();
        // re-added xaresource_ setting here, because for JMS
        // there is no threading and no thread-surpassing
        // reuse -> we can use the same and set it here.
        TransactionControl control = transaction.getTransactionControl ();
        // null for some testing programs
        if ( control != null ) {
            timeout_ = (int) transaction.getTransactionControl ().getTimeout () / 1000;

        }
View Full Code Here

TOP

Related Classes of com.atomikos.icatch.TransactionControl

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.