Package com.arjuna.mwlabs.wst.ba.context

Examples of com.arjuna.mwlabs.wst.ba.context.TxContextImple


    }
 
    private final EndpointReferenceType registerParticipant(final EndpointReferenceType participant, final String protocol)
        throws com.arjuna.wsc.InvalidProtocolException, com.arjuna.wsc.InvalidStateException, com.arjuna.wsc.NoActivityException, SystemException
    {
      TxContextImple currentTx = null;
   
      try
      {
          currentTx = (TxContextImple) _ctxManager.currentTransaction();
         
          if (currentTx == null)
            throw new com.arjuna.wsc.NoActivityException();

            final CoordinationContextType coordinationContext = currentTx.context().getCoordinationContext() ;
            final String messageId = new Uid().stringForm() ;
            return RegistrationCoordinator.register(coordinationContext, messageId, participant, protocol) ;
      }
        catch (final SoapFault sf)
        {
View Full Code Here


          if (_contextManager.currentTransaction() != null)
        throw new WrongStateException();
         
          CoordinationContextType ctx = _factory.create(BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME, null, null);
   
          TxContextImple theContext = new TxContextImple(ctx);
   
          _contextManager.resume(theContext);
      }
      catch (com.arjuna.wst.UnknownTransactionException ex)
      {
View Full Code Here

          if (_ctxManager.currentTransaction() != null)
            throw new WrongStateException();
   
          com.arjuna.mw.wsc.context.Context ctx = startTransaction(timeout);
   
          _ctxManager.resume(new TxContextImple(ctx));
      }
      catch (com.arjuna.wsc.InvalidCreateParametersException ex)
      {
          tidyup();
   
View Full Code Here

      }
    }

    public void close () throws TransactionRolledBackException, UnknownTransactionException, SystemException, WrongStateException
    {
      TxContextImple ctx = null;
   
      try
      {
          ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }
           
            final String id = ctx.identifier() ;
            final EndpointReferenceType terminatorCoordinator = getTerminationCoordinator(ctx) ;
           
          BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);
         
          terminatorStub.close();
View Full Code Here

      }
    }

    public void cancel () throws UnknownTransactionException, SystemException, WrongStateException
    {
      TxContextImple ctx = null;
   
      try
      {
            ctx = (TxContextImple) _ctxManager.suspend();
            if (ctx == null) {
                throw new WrongStateException();
            }

            final String id = ctx.identifier() ;
            final EndpointReferenceType terminatorCoordinator = getTerminationCoordinator(ctx) ;
           
            BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);
         
          terminatorStub.cancel();
View Full Code Here

    public void complete () throws UnknownTransactionException, SystemException, WrongStateException
    {
      try
      {
            final TxContextImple ctx = ((TxContextImple) _ctxManager.currentTransaction()) ;
            if (ctx == null) {
                throw new WrongStateException();
            }
            final String id = ctx.identifier() ;
            final EndpointReferenceType terminatorCoordinator = getTerminationCoordinator(ctx) ;
           
            BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);
           
          terminatorStub.complete();
View Full Code Here

          if (_ctxManager.currentTransaction() != null)
            throw new WrongStateException();
   
          com.arjuna.mw.wsc.context.Context ctx = startTransaction(timeout);
   
          _ctxManager.resume(new TxContextImple(ctx));
      }
      catch (com.arjuna.wsc.InvalidCreateParametersException ex)
      {
          tidyup();
   
View Full Code Here

      }
    }

    public void close () throws TransactionRolledBackException, UnknownTransactionException, SystemException
    {
      TxContextImple ctx = null;
   
      try
      {
          ctx = (TxContextImple) _ctxManager.suspend();
           
            final String id = ctx.identifier() ;
            final EndpointReferenceType terminatorCoordinator = getTerminationCoordinator(ctx) ;
           
          BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);
         
          terminatorStub.close();
View Full Code Here

      }
    }

    public void cancel () throws UnknownTransactionException, SystemException
    {
      TxContextImple ctx = null;
   
      try
      {
            ctx = (TxContextImple) _ctxManager.suspend();
           
            final String id = ctx.identifier() ;
            final EndpointReferenceType terminatorCoordinator = getTerminationCoordinator(ctx) ;
           
            BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);
         
          terminatorStub.cancel();
View Full Code Here

    public void complete () throws UnknownTransactionException, SystemException
    {
      try
      {
            final TxContextImple ctx = ((TxContextImple) _ctxManager.currentTransaction()) ;
            final String id = ctx.identifier() ;
            final EndpointReferenceType terminatorCoordinator = getTerminationCoordinator(ctx) ;
           
            BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);
           
          terminatorStub.complete();
View Full Code Here

TOP

Related Classes of com.arjuna.mwlabs.wst.ba.context.TxContextImple

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.