Package com.arjuna.mwlabs.wst.at.context

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


  private final void commitWithoutAck ()
      throws TransactionRolledBackException, UnknownTransactionException,
      SecurityException, SystemException
  {
    TxContextImple ctx = null;
    String id = null;
   
    try
    {     
      ctx = (TxContextImple) _ctxManager.suspend();     
      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


  }

  private final void abortWithoutAck () throws UnknownTransactionException, SecurityException,
      SystemException
  {
    TxContextImple ctx = null;
    String id = null;
   
    try
    {
      ctx = (TxContextImple) _ctxManager.suspend();
      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

      throws WrongStateException, UnknownTransactionException,
      AlreadyRegisteredException, SystemException
  {
    try
    {
      TxContextImple currentTx = (TxContextImple) _ctxManager.currentTransaction();

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

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

    }

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

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

      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

TOP

Related Classes of com.arjuna.mwlabs.wst.at.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.