Package com.arjuna.wsc

Examples of com.arjuna.wsc.NoActivityException


        else if (protocolIdentifier.equals(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER))
            throw new InvalidProtocolException();
        else if (protocolIdentifier.equals(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER))
            throw new InvalidStateException();
        else if (protocolIdentifier.equals(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER))
            throw new NoActivityException();

        return new EndpointReferenceType(new AttributedURIType(TestUtil.PROTOCOL_COORDINATOR_SERVICE)) ;
    }
View Full Code Here


        else if (protocolIdentifier.equals(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER))
            throw new InvalidProtocolException();
        else if (protocolIdentifier.equals(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER))
            throw new InvalidStateException();
        else if (protocolIdentifier.equals(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER))
            throw new NoActivityException();

        return TestUtil11.getProtocolCoordinatorEndpoint(instanceIdentifier.getInstanceIdentifier());
    }
View Full Code Here

     */

    public EndpointReferenceType register (EndpointReferenceType participantProtocolService, String protocolIdentifier, InstanceIdentifier instanceIdentifier) throws AlreadyRegisteredException, InvalidProtocolException, InvalidStateException, NoActivityException
    {
        if (instanceIdentifier == null)
            throw new NoActivityException();
       
      Transaction transaction = (Transaction) _hierarchies.get(instanceIdentifier.getInstanceIdentifier());
 
      if (transaction == null)
          throw new NoActivityException();
 
      if (protocolIdentifier.equals(_2PCProtocolId))
      {
          // enlist participant that wraps the requester URI.
   
          try
          {
              _coordManager.resume(transaction);
          }
          catch (javax.transaction.InvalidTransactionException ex)
          {
              throw new NoActivityException();
          }
          catch (javax.transaction.SystemException ex)
          {
              throw new InvalidProtocolException();
          }
View Full Code Here

  public EndpointReferenceType register (EndpointReferenceType participantProtocolService, String protocolIdentifier, InstanceIdentifier instanceIdentifier)
      throws AlreadyRegisteredException, InvalidProtocolException,
      InvalidStateException, NoActivityException
  {
        if (instanceIdentifier == null)
            throw new NoActivityException();
       
    ActivityHierarchy hier = (ActivityHierarchy) _hierarchies.get(instanceIdentifier);

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

    if (protocolIdentifier.equals(_2PCProtocolId))
    {
      // enlist participant that wraps the requester URI.

      try
      {
        _coordManager.resume(hier);
      }
      catch (com.arjuna.mw.wsas.exceptions.InvalidActivityException ex)
      {
        throw new NoActivityException();
      }
      catch (com.arjuna.mw.wsas.exceptions.SystemException ex)
      {
        throw new InvalidProtocolException();
      }
View Full Code Here

      InvalidStateException, NoActivityException
  {
    ActivityHierarchy hier = (ActivityHierarchy) _hierarchies
        .get(instanceIdentifier.getInstanceIdentifier());

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

    try
    {
      _coordManager.resume(hier);
    }
    catch (com.arjuna.mw.wsas.exceptions.InvalidActivityException ex)
    {
      throw new NoActivityException();
    }
    catch (com.arjuna.mw.wsas.exceptions.SystemException ex)
    {
      throw new InvalidProtocolException();
    }
View Full Code Here

      return registerWithSubordinate((SubordinateCoordinator)tx, participantProtocolService, protocolIdentifier);

    ActivityHierarchy hier = (ActivityHierarchy) tx;

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

    try
    {
      _coordManager.resume(hier);
    }
    catch (com.arjuna.mw.wsas.exceptions.InvalidActivityException ex)
    {
      throw new NoActivityException();
    }
    catch (com.arjuna.mw.wsas.exceptions.SystemException ex)
    {
      throw new InvalidProtocolException();
    }
View Full Code Here

     */

    public EndpointReferenceType register (EndpointReferenceType participantProtocolService, String protocolIdentifier, InstanceIdentifier instanceIdentifier) throws AlreadyRegisteredException, InvalidProtocolException, InvalidStateException, NoActivityException
    {
        if (instanceIdentifier == null)
            throw new NoActivityException();
       
      Transaction transaction = (Transaction) _hierarchies.get(instanceIdentifier.getInstanceIdentifier());
 
      if (transaction == null)
          throw new NoActivityException();
 
      if (protocolIdentifier.equals(_2PCProtocolId))
      {
          // enlist participant that wraps the requester URI.
   
          try
          {
              _coordManager.resume(transaction);
          }
          catch (javax.transaction.InvalidTransactionException ex)
          {
              throw new NoActivityException();
          }
          catch (javax.transaction.SystemException ex)
          {
              throw new InvalidProtocolException();
          }
View Full Code Here

            {
                throw new InvalidStateException(soapFault.getFaultString()) ;
            }
            else if (CoordinationConstants.WSCOOR_ERROR_CODE_NO_ACTIVITY_QNAME.equals(subcode))
            {
                throw new NoActivityException(soapFault.getFaultString()) ;
            }
            throw new SoapFault11(sfe);
        }
    }
View Full Code Here

  public EndpointReferenceType register (EndpointReferenceType participantProtocolService, String protocolIdentifier, InstanceIdentifier instanceIdentifier)
      throws AlreadyRegisteredException, InvalidProtocolException,
      InvalidStateException, NoActivityException
  {
        if (instanceIdentifier == null)
            throw new NoActivityException();
       
    ActivityHierarchy hier = (ActivityHierarchy) _hierarchies.get(instanceIdentifier);

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

    if (protocolIdentifier.equals(_2PCProtocolId))
    {
      // enlist participant that wraps the requester URI.

      try
      {
        _coordManager.resume(hier);
      }
      catch (com.arjuna.mw.wsas.exceptions.InvalidActivityException ex)
      {
        throw new NoActivityException();
      }
      catch (com.arjuna.mw.wsas.exceptions.SystemException ex)
      {
        throw new InvalidProtocolException();
      }
View Full Code Here

        else if (protocolIdentifier.equals(TestUtil.INVALID_PROTOCOL_PROTOCOL_IDENTIFIER))
            throw new InvalidProtocolException();
        else if (protocolIdentifier.equals(TestUtil.INVALID_STATE_PROTOCOL_IDENTIFIER))
            throw new InvalidStateException();
        else if (protocolIdentifier.equals(TestUtil.NO_ACTIVITY_PROTOCOL_IDENTIFIER))
            throw new NoActivityException();

        return new EndpointReferenceType(new AttributedURIType(TestUtil.PROTOCOL_COORDINATOR_SERVICE)) ;
    }
View Full Code Here

TOP

Related Classes of com.arjuna.wsc.NoActivityException

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.