Tabnine Logo
com.arjuna.mw.wsas.exceptions
Code IndexAdd Tabnine to your IDE (free)

How to use com.arjuna.mw.wsas.exceptions

Best Java code snippets using com.arjuna.mw.wsas.exceptions (Showing top 20 results out of 315)

origin: org.jboss.jbossts.xts/jbossxts

/**
 * If the application requires and if the coordination protocol supports it,
 * then this method can be used to execute a coordination protocol on the
 * currently enlisted participants at any time prior to the termination of
 * the coordination scope.
 * 
 * This implementation only supports coordination at the end of the
 * activity.
 * 
 * @param     cs The completion status to use when determining how to
 *            execute the protocol.
 * 
 * @exception WrongStateException
 *                Thrown if the coordinator is in a state the does not allow
 *                coordination to occur.
 * @exception ProtocolViolationException
 *                Thrown if the protocol is violated in some manner during
 *                execution.
 * @exception SystemException
 *                Thrown if any other error occurs.
 * 
 * @return The result of executing the protocol, or null.
 */
public Outcome coordinate (CompletionStatus cs) throws WrongStateException,
    ProtocolViolationException, SystemException
{
  throw new ProtocolViolationException();
}
origin: org.jboss.jbossts/jbossxts

public void afterCompletion (int status) throws SystemException
{
  try
  {
    _theRegistrar.disassociate(_cleanupId);
  }
  catch (Exception ex)
  {
    ex.printStackTrace();
    throw new SystemException(ex.toString());
  }
}
origin: org.jboss.jbossts.xts/jbossxts

public static final void addHLS (HLS service) throws InvalidHLSException, SystemException
{
if (service == null) {
  throw new InvalidHLSException();
} else {
  String key = service.identity();
  synchronized(_hlsMap) {
    _hlsMap.put(key, service);
  }
}
}
origin: org.jboss.jbossts.xts/jbossxts

public synchronized void participantRolledBack (String participantId)
    throws InvalidParticipantException, WrongStateException,
    SystemException
{
  if (participantId == null)
    throw new SystemException(
        wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_2());
  if (status() == ActionStatus.RUNNING)
    changeParticipantStatus(participantId, ROLLEDBACK);
  else
    throw new WrongStateException();
}
origin: org.jboss.jbossts.xts/jbossxts

public void error () throws SystemException
{
try
{
  _coordManager.setCancelOnly();
}
catch (com.arjuna.mw.wsas.exceptions.WrongStateException ex)
{
  throw new SystemException(ex.toString());
}
catch (com.arjuna.mw.wsas.exceptions.SystemException ex)
{
  throw new SystemException(ex.toString());
}
}
origin: org.jboss.jbossts.xts/wsas

public String serviceType() throws NoActivityException, SystemException {
  ActivityImple currentActivity = current();
  if (currentActivity == null) {
    throw new NoActivityException();
  }
  return currentActivity.serviceType();
}
origin: org.jboss.jbossts/jbossxts

public void fail (final QName exceptionIdentifier) throws SystemException
{
  try {
    _theTx.participantFaulted(_participantId);
  } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) {
    throw new SystemException("UnknownParticipantException");
  } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) {
    throw new SystemException(ex.toString());
  }
}
origin: org.jboss.jbossts/jbossxts

public synchronized void participantRolledBack (String participantId)
    throws InvalidParticipantException, WrongStateException,
    SystemException
{
  if (participantId == null)
    throw new SystemException(
        wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_2());
  if (status() == ActionStatus.RUNNING)
    changeParticipantStatus(participantId, ROLLEDBACK);
  else
    throw new WrongStateException();
}
origin: org.jboss.jbossts/jbossxts

public void error () throws SystemException
{
try
{
  _coordManager.setCancelOnly();
}
catch (com.arjuna.mw.wsas.exceptions.WrongStateException ex)
{
  throw new SystemException(ex.toString());
}
catch (com.arjuna.mw.wsas.exceptions.SystemException ex)
{
  throw new SystemException(ex.toString());
}
}
origin: jbosstm/narayana

public GlobalId activityId () throws NoActivityException, SystemException
{
ActivityImple curr = current();

if (curr == null)
  throw new NoActivityException();  // or return null?
else
  return curr.getGlobalId();
}

origin: org.jboss.jbossts.xts/wsas

public static final void addHLS (HLS service) throws InvalidHLSException, SystemException
{
if (service == null) {
  throw new InvalidHLSException();
} else {
  String key = service.identity();
  synchronized(_hlsMap) {
    _hlsMap.put(key, service);
  }
}
}
origin: org.jboss.jbossts.xts/jbossxts

public void afterCompletion (int status) throws SystemException
{
  try
  {
    _theRegistrar.disassociate(_cleanupId);
  }
  catch (Exception ex)
  {
    ex.printStackTrace();
    throw new SystemException(ex.toString());
  }
}
origin: org.jboss.jbossts.xts/jbossxts

public void fail (final QName exceptionIdentifier) throws SystemException
{
  try {
    _theTx.participantFaulted(_participantId);
  } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) {
    throw new SystemException("UnknownParticipantException");
  } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) {
    throw new SystemException(ex.toString());
  }
}
origin: org.jboss.jbossts.xts/wstx11

public void error () throws SystemException
{
try
{
  _coordManager.setCancelOnly();
}
catch (com.arjuna.mw.wsas.exceptions.WrongStateException ex)
{
  throw new SystemException(ex.toString());
}
catch (com.arjuna.mw.wsas.exceptions.SystemException ex)
{
  throw new SystemException(ex.toString());
}
}
origin: org.jboss.jbossts.xts/jbossxts

public GlobalId activityId () throws NoActivityException, SystemException
{
ActivityImple curr = current();

if (curr == null)
  throw new NoActivityException();  // or return null?
else
  return curr.getGlobalId();
}

origin: org.jboss.jbossts/jbossxts

public static final void addHLS (HLS service) throws InvalidHLSException, SystemException
{
if (service == null) {
  throw new InvalidHLSException();
} else {
  String key = service.identity();
  synchronized(_hlsMap) {
    _hlsMap.put(key, service);
  }
}
}
origin: org.jboss.jbossts/jbossxts

public void afterCompletion (int status) throws SystemException
{
  try
  {
    _theRegistrar.disassociate(_cleanupId);
  }
  catch (Exception ex)
  {
    ex.printStackTrace();
    throw new SystemException(ex.toString());
  }
}
origin: org.jboss.jbossts.xts/jbossxts

public String serviceType() throws NoActivityException, SystemException {
  ActivityImple currentActivity = current();
  if (currentActivity == null) {
    throw new NoActivityException();
  }
  return currentActivity.serviceType();
}
origin: org.jboss.jbossts.xts/wstx11

public void afterCompletion (int status) throws SystemException
{
  try
  {
    _theRegistrar.disassociate(_cleanupId);
  }
  catch (Exception ex)
  {
    ex.printStackTrace();
    throw new SystemException(ex.toString());
  }
}
origin: org.jboss.jbossts.xts/jbossxts

public void afterCompletion (int status) throws SystemException
{
  try
  {
    _theRegistrar.disassociate(_cleanupId);
  }
  catch (Exception ex)
  {
    ex.printStackTrace();
    throw new SystemException(ex.toString());
  }
}
com.arjuna.mw.wsas.exceptions

Most used classes

  • WrongStateException
    Thrown if the state of the activity is such that it disallows the attempted operation. For example,
  • NoActivityException
    Thrown if there is no activity associated with the invoking thread and one needs to be in order to e
  • HLSException
    Thrown the HLS completion fails. Allows the actual exception to be passed as an outcome.
  • InvalidActivityException
    Thrown if an attempt is made to utilise an unknown activity.
  • InvalidHLSException
    Thrown if an attempt is made to unregister an unknown HLS from the activity.
  • SystemException,
  • NoPermissionException,
  • ProtocolViolationException,
  • SystemCommunicationException,
  • HLSError
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now