Tabnine Logo
JTAInterposedSynchronizationImple
Code IndexAdd Tabnine to your IDE (free)

How to use
JTAInterposedSynchronizationImple
in
com.arjuna.ats.internal.jta.resources.jts.orbspecific

Best Java code snippets using com.arjuna.ats.internal.jta.resources.jts.orbspecific.JTAInterposedSynchronizationImple (Showing top 5 results out of 315)

origin: wildfly/wildfly

public void registerInterposedSynchronization(@NotNull final Transaction transaction, @NotNull final Synchronization sync) throws IllegalArgumentException {
  // this is silly but for some reason they've locked this API up tight
  try {
    registerSynchronizationImple.invoke((TransactionImple) transaction, new JTAInterposedSynchronizationImple (sync));
  } catch (RuntimeException | Error e) {
    throw e;
  } catch (Throwable t) {
    throw Log.log.unexpectedFailure(t);
  }
}
origin: org.jboss.narayana.jts/narayana-jts-idlj

public void registerInterposedSynchronization(Synchronization synchronization)
{
  if (jtaxLogger.logger.isTraceEnabled()) {
    jtaxLogger.logger.trace("TransactionSynchronizationRegistryImple.registerInterposedSynchronization - Class: " + synchronization.getClass() + " HashCode: " + synchronization.hashCode() + " toString: " + synchronization);
  }
  TransactionImple transactionImple = getTransactionImple();
  try
  {
    transactionImple.registerSynchronizationImple(new JTAInterposedSynchronizationImple(synchronization));
  }
  catch (RollbackException e)
  {
    throw new com.arjuna.ats.jta.exceptions.RollbackException(jtaxLogger.i18NLogger.get_jtax_transaction_jts_syncrollbackexception(), e);
  }
  catch (SystemException e)
  {
    throw new RuntimeException(jtaxLogger.i18NLogger.get_jtax_transaction_jts_systemexception(), e);
  }
}
origin: org.wildfly.transaction/wildfly-transaction-client

public void registerInterposedSynchronization(@NotNull final Transaction transaction, @NotNull final Synchronization sync) throws IllegalArgumentException {
  // this is silly but for some reason they've locked this API up tight
  try {
    registerSynchronizationImple.invoke((TransactionImple) transaction, new JTAInterposedSynchronizationImple (sync));
  } catch (RuntimeException | Error e) {
    throw e;
  } catch (Throwable t) {
    throw Log.log.unexpectedFailure(t);
  }
}
origin: org.jboss.eap/wildfly-client-all

public void registerInterposedSynchronization(@NotNull final Transaction transaction, @NotNull final Synchronization sync) throws IllegalArgumentException {
  // this is silly but for some reason they've locked this API up tight
  try {
    registerSynchronizationImple.invoke((TransactionImple) transaction, new JTAInterposedSynchronizationImple (sync));
  } catch (RuntimeException | Error e) {
    throw e;
  } catch (Throwable t) {
    throw Log.log.unexpectedFailure(t);
  }
}
origin: jboss.jbossts/jbossjts

/**
 * @message com.arjuna.ats.internal.jta.transaction.jts.syncrollbackexception
 * [ccom.arjuna.ats.internal.jta.transaction.jts.syncrollbackexception]
 * The transaction implementation threw a RollbackException
 */
public void registerInterposedSynchronization(Synchronization synchronization)
{
  if (jtaLogger.logger.isDebugEnabled())
  {
    jtaLogger.logger.debug(DebugLevel.FUNCTIONS,
        VisibilityLevel.VIS_PUBLIC,
        com.arjuna.ats.jta.logging.FacilityCode.FAC_JTA,
        "TransactionSynchronizationRegistryImple.registerInterposedSynchronization");
  }
  TransactionImple transactionImple = getTransactionImple();
  try
  {
    transactionImple.registerSynchronizationImple(new JTAInterposedSynchronizationImple(synchronization));
  }
  catch (RollbackException e)
  {
    throw new RuntimeException(jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.syncrollbackexception"), e);
  }
  catch (SystemException e)
  {
    throw new RuntimeException(jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.systemexception"), e);
  }
}
com.arjuna.ats.internal.jta.resources.jts.orbspecificJTAInterposedSynchronizationImple

Javadoc

Implementation of the marker interface used to distinguish Synchronizations that should be interposed in the JTA 1.1 TransactionSynchronizationRegistry sense of the term.

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Join (org.hibernate.mapping)
  • Top plugins for Android Studio
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