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(); }
/** * Get the XA Terminator * * @deprecated use getJbossXATerminator instead * @return the XA Terminator */ public JBossXATerminator getXATerminator() { return getJbossXATerminator(); }
/** * Get the XA Terminator * * @deprecated use getJbossXATerminator instead * @return the XA Terminator */ public JBossXATerminator getXATerminator() { return getJbossXATerminator(); }
/** * Get the XA Terminator * * @deprecated use getJbossXATerminator instead * @return the XA Terminator */ public JBossXATerminator getXATerminator() { return getJbossXATerminator(); }
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(); }
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; }); }