Codota Logo
JTAInterposedSynchronizationImple
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • BoxLayout (javax.swing)
  • JTable (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now