Package com.arjuna.mwlabs.wst11.ba.context

Examples of com.arjuna.mwlabs.wst11.ba.context.TxContextImple.identifier()


      SystemException
  {
        TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager();

        final TxContextImple txContext = (TxContextImple) tm.currentTransaction();
        final String id = txContext.identifier();
        final W3CEndpointReference completionCoordinator = tm.enlistForCompletion(getCompletionParticipant(id, txContext.isSecure()));

        _completionCoordinators.put(id, completionCoordinator);
  }
View Full Code Here


    {
      ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }
      id = ctx.identifier();

      /*
       * By default the completionParticipantURL won't be set for an interposed (imported)
       * bridged transaction. This is fine, because you shouldn't be able to commit that
       * transaction from a node in the tree, only from the root. So, we can prevent commit
View Full Code Here

    {
      ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }
      id = ctx.identifier();

      /*
       * By default the completionParticipantURL won't be set for an interposed (imported)
       * bridged transaction. This is fine, because you shouldn't be able to commit that
       * transaction from a node in the tree, only from the root. So, we can prevent commit
View Full Code Here

    try
    {
      TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager();

            final TxContextImple txContext = (TxContextImple) tm.currentTransaction();
            final String id = txContext.identifier();
            final W3CEndpointReference completionCoordinator = tm.enlistForCompletion(getCompletionParticipant(id, txContext.isSecure()));

      _completionCoordinators.put(id, completionCoordinator);
    }
    catch (com.arjuna.wsc.AlreadyRegisteredException ex)
View Full Code Here

    {
      ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }
      id = ctx.identifier();

      /*
       * By default the completionParticipantURL won't be set for an interposed (imported)
       * bridged transaction. This is fine, because you shouldn't be able to commit that
       * transaction from a node in the tree, only from the root. So, we can prevent commit
View Full Code Here

    {
      ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }
      id = ctx.identifier();

      /*
       * By default the completionParticipantURL won't be set for an interposed (imported)
       * bridged transaction. This is fine, because you shouldn't be able to commit that
       * transaction from a node in the tree, only from the root. So, we can prevent commit
View Full Code Here

          ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }

            final String id = ctx.identifier() ;
            final W3CEndpointReference terminatorCoordinator = getTerminationCoordinator(ctx) ;

          BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);

          terminatorStub.close();
View Full Code Here

            ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }

            final String id = ctx.identifier() ;
            final W3CEndpointReference terminatorCoordinator = getTerminationCoordinator(ctx) ;

            BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);

          terminatorStub.cancel();
View Full Code Here

      {
            final TxContextImple ctx = ((TxContextImple) _ctxManager.currentTransaction()) ;
            if (ctx == null) {
                throw new WrongStateException();
            }
            final String id = ctx.identifier() ;
            final W3CEndpointReference terminatorCoordinator = getTerminationCoordinator(ctx) ;

            BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);

          terminatorStub.complete();
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.