Examples of TxContextImple


Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple

  protected W3CEndpointReference enlistForCompletion (final W3CEndpointReference participantEndpoint)
      throws WrongStateException, UnknownTransactionException, SystemException
  {
    try
    {
      TxContextImple currentTx = (TxContextImple) _ctxManager.currentTransaction();

      if (currentTx == null)
        throw new com.arjuna.wsc.CannotRegisterException();

      return registerParticipant(participantEndpoint, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION);
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple

    }
  }

    private boolean isCurrentContextSecure()  throws SystemException
    {
        TxContextImple currentTx = (TxContextImple) _ctxManager.currentTransaction();
        if (currentTx != null) {
            return currentTx.isSecure();
        }
        return false;
    }
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple

    }

  private final W3CEndpointReference registerParticipant (final W3CEndpointReference participant, final String protocol)
      throws InvalidProtocolException, InvalidStateException, CannotRegisterException, SystemException
  {
    TxContextImple currentTx = null;

    try
    {
      currentTx = (TxContextImple) _ctxManager.suspend();

      if (currentTx == null)
        throw new CannotRegisterException();

            final CoordinationContextType coordinationContext = currentTx.context().getCoordinationContext() ;
            final String messageId = MessageId.getMessageId() ;

            return com.arjuna.wsc11.RegistrationCoordinator.register(coordinationContext, messageId, participant, protocol) ;
        }
    catch (final SoapFault sf)
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple

            final com.arjuna.mw.wst11.BusinessActivityManager businessActivityManager = BusinessActivityManagerFactory.businessActivityManager() ;

            final Context atContext ;
            if (transactionManager != null)
            {
                final TxContextImple txContext =
                    (TxContextImple)transactionManager.currentTransaction() ;
                atContext = (txContext == null ? null : txContext.context()) ;
            }
            else
            {
                atContext = null ;
            }

            final Context baContext ;
            if (businessActivityManager != null)
            {
                final com.arjuna.mwlabs.wst11.ba.context.TxContextImple txContext =
                    (com.arjuna.mwlabs.wst11.ba.context.TxContextImple)businessActivityManager.currentTransaction() ;
                baContext = (txContext == null ? null : txContext.context()) ;
            }
            else
            {
                baContext = null ;
            }
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple

                    if (cc != null)
                    {
                        final String coordinationType = cc.getCoordinationType() ;
                        if (AtomicTransactionConstants.WSAT_PROTOCOL.equals(coordinationType))
                        {
                            final TxContext txContext = new TxContextImple(cc) ;
                            TransactionManagerFactory.transactionManager().resume(txContext) ;
                        }
                        else if (BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME.equals(coordinationType))
                        {
                            final TxContext txContext = new com.arjuna.mwlabs.wst11.ba.context.TxContextImple(cc);
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple

                    final CoordinationContextType cc = CoordinationContextHelper.deserialise(soapHeaderElement) ;
                    final String coordinationType = cc.getCoordinationType();
                    if (AtomicTransactionConstants.WSAT_PROTOCOL.equals(coordinationType))
                    {
                        clearMustUnderstand(soapHeader, soapHeaderElement) ;
                        TxContext txContext = new TxContextImple(cc) ;
                        if (installSubordinateTx) {
                            txContext = SubordinateImporter.importContext(cc);
                        }
                        TransactionManagerFactory.transactionManager().resume(txContext);
                    }
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple

        ContextFactoryImple.BridgeTxData bridgeTxData = contextFactory.createBridgedTransaction(expires, isSecure);
        if (bridgeTxData != null) {
            BridgeWrapper bridgeWrapper = new BridgeWrapper();

            bridgeWrapper.context = new TxContextImple(bridgeTxData.context);
            bridgeWrapper.coordinator = bridgeTxData.coordinator;
            bridgeWrapper.id = bridgeTxData.identifier;
            return bridgeWrapper;
        } else {
            return null;
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple

    }
  }

    private boolean isCurrentContextSecure()  throws SystemException
    {
        TxContextImple currentTx = (TxContextImple) _ctxManager.currentTransaction();
        if (currentTx != null) {
            return currentTx.isSecure();
        }
        return false;
    }
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple

    }

  private final W3CEndpointReference registerParticipant (final W3CEndpointReference participant, final String protocol)
      throws InvalidProtocolException, InvalidStateException, NoActivityException, SystemException
  {
    TxContextImple currentTx = null;

    try
    {
      currentTx = (TxContextImple) _ctxManager.suspend();

      if (currentTx == null)
        throw new NoActivityException();

            final CoordinationContextType coordinationContext = currentTx.context().getCoordinationContext() ;
            final String messageId = MessageId.getMessageId() ;

            return com.arjuna.wsc11.RegistrationCoordinator.register(coordinationContext, messageId, participant, protocol) ;
        }
    catch (final SoapFault sf)
View Full Code Here

Examples of com.arjuna.mwlabs.wst11.at.context.TxContextImple

      if (_ctxManager.currentTransaction() != null)
        throw new WrongStateException();

      Context ctx = startTransaction(timeout, null);

      _ctxManager.resume(new TxContextImple(ctx));

      enlistCompletionParticipants();
    }
    catch (com.arjuna.wsc.InvalidCreateParametersException ex)
    {
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.