Package com.arjuna.mw.wsas.exceptions

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


  {
      throw new SystemException(ex.toString());
  }
  catch (javax.transaction.RollbackException ex)
  {
      throw new WrongStateException(ex.toString());
  }
    }
View Full Code Here


    {
      SynchronizationRecord rec = new SynchronizationRecord(act,
          new Uid(), priority, quals);

      if (addSynchronization(rec) != AddOutcome.AR_ADDED)
        throw new WrongStateException();
    }
    else
    {
      AbstractRecord rec = new ParticipantRecord(act, new Uid(),
          priority, quals);

      if (add(rec) != AddOutcome.AR_ADDED)
        throw new WrongStateException();
    }
  }
View Full Code Here

      SystemException
  {
    if (act == null)
      throw new InvalidParticipantException();
    else
      throw new WrongStateException(
          wscfLogger.log_mesg.getString("com.arjuna.mwlabs.wscf.model.as.coordinator.arjunacore.ACCoordinator_1"));
  }
View Full Code Here

    synchronized (this)
    {
      if ((status() == ActionStatus.COMMITTED)
          || (status() == ActionStatus.ABORTED))
      {
        throw new WrongStateException();
      }

      boolean found = false;
      RecordList intentionsList = pendingList; // what about other
                            // lists?
View Full Code Here

  {
      throw new SystemException(ex.toString());
  }
  catch (javax.transaction.RollbackException ex)
  {
      throw new WrongStateException(ex.toString());
  }
    }
View Full Code Here

      throw new InvalidParticipantException();

    AbstractRecord rec = new ParticipantRecord(act, new Uid());

    if (add(rec) != AddOutcome.AR_ADDED)
      throw new WrongStateException();
  }
View Full Code Here

      SystemException
  {
    if (act == null)
      throw new InvalidParticipantException();
    else
      throw new WrongStateException(
          wscfLogger.log_mesg.getString("com.arjuna.mwlabs.wscf.model.twophase.arjunacore.ACCoordinator_1"));
  }
View Full Code Here

      throw new InvalidSynchronizationException();

    SynchronizationRecord rec = new SynchronizationRecord(act, new Uid());

    if (addSynchronization(rec) != AddOutcome.AR_ADDED)
      throw new WrongStateException();
  }
View Full Code Here

      SystemException
  {
    if (act == null)
      throw new InvalidSynchronizationException();
    else
      throw new WrongStateException(
          wscfLogger.log_mesg.getString("com.arjuna.mwlabs.wscf.model.twophase.arjunacore.ACCoordinator_1"));
  }
View Full Code Here

          wscfLogger.log_mesg.getString("com.arjuna.mwlabs.wscf.model.twophase.arjunacore.ACCoordinator_2"));

    if (status() == ActionStatus.RUNNING)
      changeParticipantStatus(participantId, ROLLEDBACK);
    else
      throw new WrongStateException();
  }
View Full Code Here

TOP

Related Classes of com.arjuna.mw.wsas.exceptions.WrongStateException

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.