Package com.arjuna.mw.wsas.exceptions

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


      {
        throw new WrongStateException(ex.toString());
      }
      catch (com.arjuna.wst.SystemException ex)
      {
        throw new SystemException(ex.toString());
      }
    }
    else
      throw new InvalidParticipantException();
  }
View Full Code Here


    {
      throw new WrongStateException(ex.toString());
    }
    catch (com.arjuna.wst.SystemException ex)
    {
      throw new SystemException(ex.toString());
    }
  }
View Full Code Here

        throw new InvalidParticipantException();
    }
        catch (com.arjuna.wst.FaultedException ex)
        {
            // n.b. in 1.0 we will never see this
            throw new SystemException(ex.toString());
        }
    catch (com.arjuna.wst.WrongStateException ex)
    {
      throw new WrongStateException(ex.toString());
    }
        catch (com.arjuna.wst.SystemException ex)
        {
            throw new SystemException(ex.toString());
        }
  }
View Full Code Here

    {
      throw new WrongStateException(ex.toString());
    }
    catch (com.arjuna.wst.SystemException ex)
    {
      throw new SystemException(ex.toString());
    }
  }
View Full Code Here

      if (_resource != null)
      {
        return _resource.status();
      }
      else
        throw new SystemException("InvalidParticipant");
    }
    catch (com.arjuna.wst.SystemException ex)
    {
      throw new SystemException(ex.toString());
    }
  }
View Full Code Here

                            preventCommit();

                            wscfLogger.arjLoggerI18N.warn("com.arjuna.mwlabs.wscf.model.sagas.arjunacore.ACCoordinator_1", new Object[] { get_uid() });

                            throw new SystemException("Participant failed to complete");
                        }
                    }

                    absRec = iter.iterate();
                }
View Full Code Here

  public synchronized void delistParticipant (String participantId)
      throws InvalidParticipantException, WrongStateException,
      SystemException
  {
    if (participantId == null)
      throw new SystemException(
          wscfLogger.log_mesg
              .getString("com.arjuna.mwlabs.wscf.model.sagas.arjunacore.ACCoordinator_2"));

        int status = status();
        // exit is only legitimate when the TX is in these states
View Full Code Here

  public synchronized void participantCompleted (String participantId)
      throws InvalidParticipantException, WrongStateException,
      SystemException
  {
    if (participantId == null)
      throw new SystemException(
          wscfLogger.log_mesg
              .getString("com.arjuna.mwlabs.wscf.model.sagas.arjunacore.ACCoordinator_2"));

        int status = status();
        // completed is only legitimate when the TX is in these states
View Full Code Here

  public synchronized void participantFaulted (String participantId)
      throws InvalidParticipantException, SystemException
  {
    if (participantId == null)
      throw new SystemException(
          wscfLogger.log_mesg
              .getString("com.arjuna.mwlabs.wscf.model.sagas.arjunacore.ACCoordinator_2"));

        int status = status();
        // faulted is only legitimate when the TX is in these states
        switch (status) {
            case ActionStatus.RUNNING:
                // if a participant notifies this then we need to mark the transaction as abort only
                preventCommit();
                // !!! deliberate drop through !!!
            case ActionStatus.ABORT_ONLY:
            case ActionStatus.COMMITTING:
            case ActionStatus.COMMITTED:    // this can happen during recovery processing
            case ActionStatus.ABORTING:
                changeParticipantStatus(participantId, FAILED);
                break;
            default:
                throw new SystemException(
          wscfLogger.log_mesg
              .getString("com.arjuna.mwlabs.wscf.model.sagas.arjunacore.ACCoordinator_3"));
        }
    }
View Full Code Here

 
      _coordinators.put(currentActivity(), tx);
  }
  catch (Exception ex)
  {
      throw new SystemException(ex.toString());
  }
    } 
View Full Code Here

TOP

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

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.