Examples of NoActivityException


Examples of com.arjuna.mw.wsas.exceptions.NoActivityException

    public void setCompletionStatus (CompletionStatus endStatus) throws NoActivityException, WrongStateException, SystemException
    {
  ActivityImple curr = current();
 
  if (curr == null)
      throw new NoActivityException();
 
  curr.setCompletionStatus(endStatus);
    }
View Full Code Here

Examples of com.arjuna.mw.wsas.exceptions.NoActivityException

    public CompletionStatus getCompletionStatus () throws NoActivityException, SystemException
    {
  ActivityImple curr = current();
 
  if (curr == null)
      throw new NoActivityException();
  else
      return curr.getCompletionStatus();
    }
View Full Code Here

Examples of com.arjuna.mw.wsas.exceptions.NoActivityException

    public String activityName () throws NoActivityException, SystemException
    {
  ActivityImple curr = current();
 
  if (curr == null)
      throw new NoActivityException()// or return null?
  else
      return curr.activityName();
    }
View Full Code Here

Examples of com.arjuna.mw.wsas.exceptions.NoActivityException

    public GlobalId activityId () throws NoActivityException, SystemException
    {
  ActivityImple curr = current();
 
  if (curr == null)
      throw new NoActivityException()// or return null?
  else
      return curr.getGlobalId();
    }
View Full Code Here

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

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 TestUtil11.getProtocolCoordinatorEndpoint(instanceIdentifier.getInstanceIdentifier());
    }
View Full Code Here

Examples of com.arjuna.wsc.NoActivityException

     */

    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

Examples of com.arjuna.wsc.NoActivityException

  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

Examples of com.arjuna.wsc.NoActivityException

      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

Examples of com.arjuna.wsc.NoActivityException

      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
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.