congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reference (javax.naming)
  • JList (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Option (scala)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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