Tabnine Logo
TransactionManagerService.getTransactionManager
Code IndexAdd Tabnine to your IDE (free)

How to use
getTransactionManager
method
in
com.arjuna.ats.jbossatx.jta.TransactionManagerService

Best Java code snippets using com.arjuna.ats.jbossatx.jta.TransactionManagerService.getTransactionManager (Showing top 6 results out of 315)

origin: wildfly/wildfly

public void start(final StartContext context) throws StartException {
  JBossLocalTransactionProvider.Builder builder = JBossLocalTransactionProvider.builder();
  builder.setExtendedJBossXATerminator(extendedJBossXATerminatorInjector.getValue());
  builder.setTransactionManager(transactionManagerInjector.getValue().getTransactionManager());
  builder.setTransactionSynchronizationRegistry(transactionManagerInjector.getValue().getTransactionSynchronizationRegistry());
  builder.setXATerminator(transactionManagerInjector.getValue().getJbossXATerminator());
  builder.setXAResourceRecoveryRegistry(xaResourceRecoveryRegistryInjector.getValue());
  builder.setXARecoveryLogDirRelativeToPath(serverEnvironmentInjector.getValue().getServerDataDir().toPath());
  final LocalTransactionContext transactionContext = this.context = new LocalTransactionContext(builder.build());
  // TODO: replace this with per-CL settings for embedded use and to support remote UserTransaction
  doPrivileged((PrivilegedAction<Void>) () -> {
    LocalTransactionContext.getContextManager().setGlobalDefault(transactionContext);
    return null;
  });
  // Install the void service required by capability org.wildfly.transactions.global-default-local-provider
  // so other capabilities that require it can start their services after this capability
  // has completed its work.
  context.getChildTarget().addService(LOCAL_PROVIDER_CAPABILITY.getCapabilityServiceName())
      .setInstance(Service.NULL)
      .install();
}
origin: wildfly/wildfly

this.configuration = configuration;
this.factory = factory;
final TransactionManager jtsTransactionManager = transactionManagerInjectedValue.getValue().getTransactionManager();
assert ! (jtsTransactionManager instanceof ContextTransactionManager);
origin: org.jboss.jbossas/weld-int-ejb

public void registerSynchronization(Synchronization synchronizedObserver)
{
 try
 {
   getTransactionManager().getTransactionManager().getTransaction().registerSynchronization(synchronizedObserver);
 }
 catch (Exception e)
 {
   throw new RuntimeException("Failed to register synchronization " + synchronizedObserver + " for current transaction", e);
 }
}
origin: org.jboss.weld.integration/weld-jboss-int-jboss-ejb

public void registerSynchronization(Synchronization synchronizedObserver)
{
 try
 {
   getTransactionManager().getTransactionManager().getTransaction().registerSynchronization(synchronizedObserver);
 }
 catch (Exception e)
 {
   throw new RuntimeException("Failed to register synchronization " + synchronizedObserver + " for current transaction", e);
 }
}
origin: org.wildfly/wildfly-transactions

public void start(final StartContext context) throws StartException {
  JBossLocalTransactionProvider.Builder builder = JBossLocalTransactionProvider.builder();
  builder.setExtendedJBossXATerminator(extendedJBossXATerminatorInjector.getValue());
  builder.setTransactionManager(transactionManagerInjector.getValue().getTransactionManager());
  builder.setTransactionSynchronizationRegistry(transactionManagerInjector.getValue().getTransactionSynchronizationRegistry());
  builder.setXATerminator(transactionManagerInjector.getValue().getJbossXATerminator());
  builder.setXAResourceRecoveryRegistry(xaResourceRecoveryRegistryInjector.getValue());
  builder.setXARecoveryLogDirRelativeToPath(serverEnvironmentInjector.getValue().getServerDataDir().toPath());
  final LocalTransactionContext transactionContext = this.context = new LocalTransactionContext(builder.build());
  // TODO: replace this with per-CL settings for embedded use and to support remote UserTransaction
  doPrivileged((PrivilegedAction<Void>) () -> {
    LocalTransactionContext.getContextManager().setGlobalDefault(transactionContext);
    return null;
  });
  // Install the void service required by capability org.wildfly.transactions.global-default-local-provider
  // so other capabilities that require it can start their services after this capability
  // has completed its work.
  context.getChildTarget().addService(LOCAL_PROVIDER_CAPABILITY.getCapabilityServiceName())
      .setInstance(Service.NULL)
      .install();
}
origin: org.jboss.eap/wildfly-transactions

public void start(final StartContext context) throws StartException {
  JBossLocalTransactionProvider.Builder builder = JBossLocalTransactionProvider.builder();
  builder.setExtendedJBossXATerminator(extendedJBossXATerminatorInjector.getValue());
  builder.setTransactionManager(transactionManagerInjector.getValue().getTransactionManager());
  builder.setTransactionSynchronizationRegistry(transactionManagerInjector.getValue().getTransactionSynchronizationRegistry());
  builder.setXATerminator(transactionManagerInjector.getValue().getJbossXATerminator());
  builder.setXAResourceRecoveryRegistry(xaResourceRecoveryRegistryInjector.getValue());
  builder.setXARecoveryLogDirRelativeToPath(serverEnvironmentInjector.getValue().getServerDataDir().toPath());
  final LocalTransactionContext transactionContext = this.context = new LocalTransactionContext(builder.build());
  // TODO: replace this with per-CL settings for embedded use and to support remote UserTransaction
  doPrivileged((PrivilegedAction<Void>) () -> {
    LocalTransactionContext.getContextManager().setGlobalDefault(transactionContext);
    return null;
  });
}
com.arjuna.ats.jbossatx.jtaTransactionManagerServicegetTransactionManager

Javadoc

Retrieve a reference to the JTA transaction manager.

Popular methods of TransactionManagerService

  • getJbossXATerminator
  • getTransactionSynchronizationRegistry
    Retrieve a reference ot the JTA TransactionSynchronizationRegistry.
  • <init>
  • create
  • destroy
  • getUserTransaction
    Retrieve a reference to the JTA user transaction manager.
  • setJbossXATerminator
  • setTransactionSynchronizationRegistry
  • start
  • stop

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top PhpStorm plugins
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