Tabnine Logo
UnknownTransactionException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.arjuna.wst.UnknownTransactionException
constructor

Best Java code snippets using com.arjuna.wst.UnknownTransactionException.<init> (Showing top 20 results out of 315)

origin: org.jboss.jbossts/jbossxts-api

/**
 * obtain a resumable transaction context for the bridged-to transaction
 * @return a resumable transaction context
 * @throws UnknownTransactionException if this transaction has been recovered from the log and hence
 * has no associated transaction context.
 */
public TxContext getContext() throws UnknownTransactionException
{
  if (context != null) {
    return context;
  } else {
    throw new UnknownTransactionException();
  }
}
origin: org.jboss.jbossts/jbossxts

private final void enlistCompletionParticipants ()
    throws WrongStateException, UnknownTransactionException,
    SystemException
{
  TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager();
  final TxContextImple currentTx = (TxContextImple) tm.currentTransaction();
  if (currentTx == null)
    throw new UnknownTransactionException();
  final String id = currentTx.identifier();
  W3CEndpointReference completionCoordinator = null;
  try
  {
    completionCoordinator = tm.registerParticipant(null, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC);
  }
  catch (InvalidProtocolException ex)
  {
    ex.printStackTrace();
    throw new SystemException(ex.toString());
  }
  catch (InvalidStateException ex)
  {
    throw new WrongStateException();
  }
  catch (CannotRegisterException ex)
  {
    // cause could actually be no activity or already registered
    throw new UnknownTransactionException();
  }
  _completionCoordinators.put(id, completionCoordinator);
}
origin: org.jboss.jbossts.xts/wstx11

private final void enlistCompletionParticipants ()
    throws WrongStateException, UnknownTransactionException,
    SystemException
{
  TransactionManagerImple tm = (TransactionManagerImple) TransactionManager.getTransactionManager();
  final TxContextImple currentTx = (TxContextImple) tm.currentTransaction();
  if (currentTx == null)
    throw new UnknownTransactionException();
  final String id = currentTx.identifier();
  W3CEndpointReference completionCoordinator = null;
  try
  {
    completionCoordinator = tm.registerParticipant(null, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_COMPLETION_RPC);
  }
  catch (InvalidProtocolException ex)
  {
    ex.printStackTrace();
    throw new SystemException(ex.toString());
  }
  catch (InvalidStateException ex)
  {
    throw new WrongStateException();
  }
  catch (CannotRegisterException ex)
  {
    // cause could actually be no activity or already registered
    throw new UnknownTransactionException();
  }
  _completionCoordinators.put(id, completionCoordinator);
}
origin: org.jboss.jbossts.xts/ws-t11

  public void rollback () throws UnknownTransactionException, SystemException
  {
    final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ;

    try
    {
      CompletionCoordinatorRPCClient.getClient().sendRollback(_completionCoordinator, map) ;
    }
    catch (final SoapFault soapFault)
    {
      if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) {
        throw new UnknownTransactionException(soapFault.getMessage());
      }
      throw new SystemException(soapFault.getMessage()) ;
    }
    catch (final Throwable th)
    {
      th.printStackTrace() ;
      throw new SystemException(th.getMessage()) ;
    }
  }
}
origin: org.jboss.jbossts.xts/jbossxts

  public void rollback () throws UnknownTransactionException, SystemException
  {
    final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ;

    try
    {
      CompletionCoordinatorRPCClient.getClient().sendRollback(_completionCoordinator, map) ;
    }
    catch (final SoapFault soapFault)
    {
      if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) {
        throw new UnknownTransactionException(soapFault.getMessage());
      }
      throw new SystemException(soapFault.getMessage()) ;
    }
    catch (final Throwable th)
    {
      th.printStackTrace() ;
      throw new SystemException(th.getMessage()) ;
    }
  }
}
origin: org.jboss.jbossts/jbossxts

  public void rollback () throws UnknownTransactionException, SystemException
  {
    final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ;

    try
    {
      CompletionCoordinatorRPCClient.getClient().sendRollback(_completionCoordinator, map) ;
    }
    catch (final SoapFault soapFault)
    {
      if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) {
        throw new UnknownTransactionException(soapFault.getMessage());
      }
      throw new SystemException(soapFault.getMessage()) ;
    }
    catch (final Throwable th)
    {
      th.printStackTrace() ;
      throw new SystemException(th.getMessage()) ;
    }
  }
}
origin: org.jboss.jbossts.xts/jbossxts

throw new UnknownTransactionException();
throw new UnknownTransactionException();
origin: org.jboss.jbossts.xts/ws-t11

public void commit () throws TransactionRolledBackException,
    UnknownTransactionException, SystemException
{
  final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ;
  boolean result;
  try
  {
    result = CompletionCoordinatorRPCClient.getClient().sendCommit(_completionCoordinator, map) ;
  }
  catch (final SoapFault soapFault)
  {
    if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode())) {
      throw new UnknownTransactionException(soapFault.getMessage());
    }
    throw new SystemException(soapFault.getMessage()) ;
  }
  catch (final Exception e)
  {
    throw new SystemException(e.getMessage()) ;
  }
  catch (final Throwable th)
  {
    th.printStackTrace() ;
    throw new SystemException(th.getMessage()) ;
  }
  if (!result) {
    throw new TransactionRolledBackException() ;
  }
}
origin: org.jboss.jbossts/jbossxts-api

/**
 * recreate a wrapper for a bridged-to WS-AT 1.1 transaction recovered from the log
 * @param identifier the identifier of a previously created bridged-to transaction
 * @return a wrapper for the bridged-to transaction or null if it may still be awaiting recovery
 * @throws UnknownTransactionException if recovery has been performed and no transaction with the
 * given identifier has been found in the log
 */
public static BridgeWrapper recover(String identifier) throws UnknownTransactionException
{
  SubordinateATCoordinator coordinator = SubordinateATCoordinator.getRecoveredCoordinator(identifier);
  if (coordinator != null) {
    BridgeWrapper bridgeWrapper = new BridgeWrapper();
    bridgeWrapper.context = null;
    bridgeWrapper.coordinator =coordinator;
    bridgeWrapper.id = identifier;
    bridgeWrapper.subordinateType = coordinator.getSubordinateType();
    return bridgeWrapper;
  } else {
    XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
    if (recoveryManager != null && recoveryManager.isCoordinatorRecoveryStarted()) {
      throw new UnknownTransactionException();
    } else {
      return null;
    }
  }
}
origin: org.jboss.jbossts.xts/jbossxts

public void close ()
  throws TransactionRolledBackException, UnknownTransactionException, SystemException
{
  final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ;
  try
  {
    TerminationCoordinatorRPCClient.getClient().sendClose(_terminationCoordinator, map, new InstanceIdentifier(_id)) ;
  }
  catch (SoapFault11 soapFault)
  {
    if ((ArjunaTXConstants.TRANSACTIONROLLEDBACK_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))) {
      throw new TransactionRolledBackException(soapFault.getMessage());
    }
    else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))
    {
      throw new UnknownTransactionException(soapFault.getMessage()) ;
    }
    throw new SystemException(soapFault.getMessage()) ;
  }
  catch (Exception e)
  {
    throw new SystemException();
  }
}
origin: org.jboss.jbossts/jbossxts

public void close ()
  throws TransactionRolledBackException, UnknownTransactionException, SystemException
{
  final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ;
  try
  {
    TerminationCoordinatorRPCClient.getClient().sendClose(_terminationCoordinator, map, new InstanceIdentifier(_id)) ;
  }
  catch (SoapFault11 soapFault)
  {
    if ((ArjunaTXConstants.TRANSACTIONROLLEDBACK_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))) {
      throw new TransactionRolledBackException(soapFault.getMessage());
    }
    else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))
    {
      throw new UnknownTransactionException(soapFault.getMessage()) ;
    }
    throw new SystemException(soapFault.getMessage()) ;
  }
  catch (Exception e)
  {
    throw new SystemException();
  }
}
origin: org.jboss.jbossts.xts/ws-t11

public void close ()
  throws TransactionRolledBackException, UnknownTransactionException, SystemException
{
  final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ;
  try
  {
    TerminationCoordinatorRPCClient.getClient().sendClose(_terminationCoordinator, map, new InstanceIdentifier(_id)) ;
  }
  catch (SoapFault11 soapFault)
  {
    if ((ArjunaTXConstants.TRANSACTIONROLLEDBACK_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))) {
      throw new TransactionRolledBackException(soapFault.getMessage());
    }
    else if (ArjunaTXConstants.UNKNOWNTRANSACTION_ERROR_CODE_QNAME.equals(soapFault.getSubcode()))
    {
      throw new UnknownTransactionException(soapFault.getMessage()) ;
    }
    throw new SystemException(soapFault.getMessage()) ;
  }
  catch (Exception e)
  {
    throw new SystemException();
  }
}
origin: org.jboss.jbossts.xts/wstx11

throw new UnknownTransactionException();
origin: org.jboss.jbossts.xts/wstx11

public void enlistForDurableTwoPhase (Durable2PCParticipant tpp, String id)
    throws WrongStateException, UnknownTransactionException, SystemException
{
  try
  {
    final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure());
    final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_DURABLE_2PC);
    ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ;
  }
  catch (com.arjuna.wsc.InvalidProtocolException ex)
  {
    throw new SystemException(ex.toString());
  }
  catch (com.arjuna.wsc.InvalidStateException ex)
  {
    throw new WrongStateException();
  }
  catch (com.arjuna.wsc.CannotRegisterException ex)
  {
    // cause could actually be no activity or already registered
    throw new UnknownTransactionException();
  }
}
origin: org.jboss.jbossts.xts/jbossxts

public void enlistForDurableTwoPhase (Durable2PCParticipant tpp, String id)
    throws WrongStateException, UnknownTransactionException, SystemException
{
  try
  {
    final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure());
    final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_DURABLE_2PC);
    ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ;
  }
  catch (com.arjuna.wsc.InvalidProtocolException ex)
  {
    throw new SystemException(ex.toString());
  }
  catch (com.arjuna.wsc.InvalidStateException ex)
  {
    throw new WrongStateException();
  }
  catch (com.arjuna.wsc.CannotRegisterException ex)
  {
    // cause could actually be no activity or already registered
    throw new UnknownTransactionException();
  }
}
origin: org.jboss.jbossts/jbossxts

public void enlistForDurableTwoPhase (Durable2PCParticipant tpp, String id)
    throws WrongStateException, UnknownTransactionException, SystemException
{
  try
  {
    final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure());
    final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_DURABLE_2PC);
    ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ;
  }
  catch (com.arjuna.wsc.InvalidProtocolException ex)
  {
    throw new SystemException(ex.toString());
  }
  catch (com.arjuna.wsc.InvalidStateException ex)
  {
    throw new WrongStateException();
  }
  catch (com.arjuna.wsc.CannotRegisterException ex)
  {
    // cause could actually be no activity or already registered
    throw new UnknownTransactionException();
  }
}
origin: org.jboss.jbossts.xts/jbossxts

public void enlistForVolatileTwoPhase (Volatile2PCParticipant tpp, String id)
    throws WrongStateException, UnknownTransactionException, SystemException
{
  try
  {
    final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure());
    final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_VOLATILE_2PC);
    ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ;
  }
  catch (com.arjuna.wsc.InvalidProtocolException ex)
  {
    throw new SystemException(ex.toString());
  }
  catch (com.arjuna.wsc.InvalidStateException ex)
  {
    throw new WrongStateException();
  }
  catch (com.arjuna.wsc.CannotRegisterException ex)
  {
    // cause could actually be no activity or already registered
    ex.printStackTrace();
    throw new UnknownTransactionException();
  }
}
origin: org.jboss.jbossts.xts/wstx11

throw new UnknownTransactionException();
origin: org.jboss.jbossts.xts/wstx11

public void enlistForVolatileTwoPhase (Volatile2PCParticipant tpp, String id)
    throws WrongStateException, UnknownTransactionException, SystemException
{
  try
  {
    final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure());
    final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_VOLATILE_2PC);
    ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ;
  }
  catch (com.arjuna.wsc.InvalidProtocolException ex)
  {
    throw new SystemException(ex.toString());
  }
  catch (com.arjuna.wsc.InvalidStateException ex)
  {
    throw new WrongStateException();
  }
  catch (com.arjuna.wsc.CannotRegisterException ex)
  {
    // cause could actually be no activity or already registered
    ex.printStackTrace();
    throw new UnknownTransactionException();
  }
}
origin: org.jboss.jbossts/jbossxts

public void enlistForVolatileTwoPhase (Volatile2PCParticipant tpp, String id)
    throws WrongStateException, UnknownTransactionException, SystemException
{
  try
  {
    final W3CEndpointReference participant = getParticipant(id, isCurrentContextSecure());
    final W3CEndpointReference coordinator = registerParticipant(participant, AtomicTransactionConstants.WSAT_SUB_PROTOCOL_VOLATILE_2PC);
    ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ;
  }
  catch (com.arjuna.wsc.InvalidProtocolException ex)
  {
    throw new SystemException(ex.toString());
  }
  catch (com.arjuna.wsc.InvalidStateException ex)
  {
    throw new WrongStateException();
  }
  catch (com.arjuna.wsc.CannotRegisterException ex)
  {
    // cause could actually be no activity or already registered
    ex.printStackTrace();
    throw new UnknownTransactionException();
  }
}
com.arjuna.wstUnknownTransactionException<init>

Popular methods of UnknownTransactionException

  • toString

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • From CI to AI: The AI layer in your organization
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