Codota Logo
TransactionHelper.deregisterXAResource
Code IndexAdd Codota to your IDE (free)

How to use
deregisterXAResource
method
in
org.jboss.narayana.jta.jms.TransactionHelper

Best Java code snippets using org.jboss.narayana.jta.jms.TransactionHelper.deregisterXAResource (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: jbosstm/narayana

/**
 * Simply close proxied session if there is no active transaction. Or if transaction exists, delist session's XA resource
 * and register a {@link SessionClosingSynchronization} to close the proxied session.
 * 
 * @throws JMSException
 */
@Override
public void close() throws JMSException {
  if (transactionHelper.isTransactionAvailable()) {
    transactionHelper.deregisterXAResource(xaSession.getXAResource());
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("Delisted " + xaSession + " XA resource from the transaction");
    }
    Synchronization synchronization = new SessionClosingSynchronization(xaSession);
    transactionHelper.registerSynchronization(synchronization);
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("Registered synchronization to close the session: " + synchronization);
    }
  } else {
    xaSession.close();
  }
}
origin: org.jboss.narayana.jts/narayana-jts-idlj

/**
 * Simply close proxied session if there is no active transaction. Or if transaction exists, delist session's XA resource
 * and register a {@link SessionClosingSynchronization} to close the proxied session.
 * 
 * @throws JMSException
 */
@Override
public void close() throws JMSException {
  if (transactionHelper.isTransactionAvailable()) {
    transactionHelper.deregisterXAResource(xaSession.getXAResource());
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("Delisted " + xaSession + " XA resource from the transaction");
    }
    Synchronization synchronization = new SessionClosingSynchronization(xaSession);
    transactionHelper.registerSynchronization(synchronization);
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("Registered synchronization to close the session: " + synchronization);
    }
  } else {
    xaSession.close();
  }
}
origin: jbosstm/narayana

/**
 * Simply close proxied session if there is no active transaction. Or if transaction exists, delist session's XA resource
 * and register a {@link SessionClosingSynchronization} to close the proxied session.
 * 
 * @throws JMSException
 */
@Override
public void close() throws JMSException {
  if (transactionHelper.isTransactionAvailable()) {
    transactionHelper.deregisterXAResource(xaSession.getXAResource());
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("Delisted " + xaSession + " XA resource from the transaction");
    }
    Synchronization synchronization = new SessionClosingSynchronization(xaSession);
    transactionHelper.registerSynchronization(synchronization);
    if (jtaLogger.logger.isTraceEnabled()) {
      jtaLogger.logger.trace("Registered synchronization to close the session: " + synchronization);
    }
  } else {
    xaSession.close();
  }
}
org.jboss.narayana.jta.jmsTransactionHelperderegisterXAResource

Javadoc

Delist XA resource from a current transaction. If error occurs wrap an original exception with JMSException.

Popular methods of TransactionHelper

  • isTransactionAvailable
    Check if transaction is active. If error occurs wrap an original exception with JMSException.
  • registerSynchronization
    Register synchronization with a current transaction. If error occurs wrap an original exception with
  • registerXAResource
    Enlist XA resource to a current transaction. If error occurs wrap an original exception with JMSExce

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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