Examples of InvalidActivityException


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

          /*
           * Can we do equivalent of rollback on all children and then
           * rollback this?
           */

          throw new InvalidActivityException(
              wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.activity.ActivityImple_2")
                  + " " + this);
        }

        Outcome current = null;
View Full Code Here

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

  final void addChild (ActivityImple child) throws WrongStateException,
      InvalidActivityException, SystemException
  {
    if (child == null)
      throw new InvalidActivityException(
          wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.activity.ActivityImple_6"));

    synchronized (this)
    {
      if (_status.equals(Active.instance()))
View Full Code Here

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

  final void removeChild (ActivityImple child) throws WrongStateException,
      InvalidActivityException, SystemException
  {
    if (child == null)
      throw new InvalidActivityException(
          wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.activity.ActivityImple_8"));

    synchronized (this)
    {
      if (_status.equals(Active.instance()))
      {
        if (_children.get(child.getGlobalId()) == null)
          throw new InvalidActivityException(
              wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.activity.ActivityImple_9")
                  + child);
      }
      else
        throw new WrongStateException(
View Full Code Here

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

       
        purge();
    }
      }
      else
    throw new InvalidActivityException(wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.UserActivityImple_51"));
  }

  HLS[] hls = HLSManager.allHighLevelServices();

  if (hls != null)
View Full Code Here

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

       
        purge();
    }
      }
      else
    throw new InvalidActivityException(wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.UserActivityImple_51"));
  }

  HLS[] hls = HLSManager.allHighLevelServices();

  if (hls != null)
View Full Code Here

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

          /*
           * Can we do equivalent of rollback on all children and then
           * rollback this?
           */

          throw new InvalidActivityException(
              wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.activity.ActivityImple_2")
                  + " " + this);
        }

        Outcome current = null;
View Full Code Here

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

  final void addChild (ActivityImple child) throws WrongStateException,
      InvalidActivityException, SystemException
  {
    if (child == null)
      throw new InvalidActivityException(
          wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.activity.ActivityImple_6"));

    synchronized (this)
    {
      if (_status.equals(Active.instance()))
View Full Code Here

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

  final void removeChild (ActivityImple child) throws WrongStateException,
      InvalidActivityException, SystemException
  {
    if (child == null)
      throw new InvalidActivityException(
          wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.activity.ActivityImple_8"));

    synchronized (this)
    {
      if (_status.equals(Active.instance()))
      {
        if (_children.get(child.getGlobalId()) == null)
          throw new InvalidActivityException(
              wsasLogger.log_mesg.getString("com.arjuna.mwlabs.wsas.activity.ActivityImple_9")
                  + child);
      }
      else
        throw new WrongStateException(
View Full Code Here

Examples of javax.activity.InvalidActivityException

    }
    // reset the denial counter - we got a permit in time!
    cascClient.resetSemaphorePermitDenialCounter();
    if (cascClient.isDestroyed() == true) {
      // cascaded client got destroyed in the meantime, stop operation
      callback.receive(new InvalidActivityException("cascaded client got destroyed in the meantime, stop operation service="
          + cascClient.getServiceName()));
      // release permit
      cascClientSemaphore.release();
      LOGGER.warn("cascaded client got destroyed in the meantime, stop operation service=" + cascClient.getServiceName());
      return false;
View Full Code Here

Examples of javax.activity.InvalidActivityException

   */
  public synchronized void handleMessage(String remoteJID, String localJID, ActivityEntry activity) throws InvalidActivityException, AccessDeniedException {

    // Validate the activity
    if (activity == null || !activity.hasId()) {
      throw new InvalidActivityException();
    }
   
    // Create a message for the recipient
    ActivityMessage message = new PersistentActivityMessage();
    message.setSender(remoteJID);
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.