@Override public RemoteTransactionContext run() { return RemoteTransactionContext.getInstance(); } });
HttpEJBReceiver() { if(System.getSecurityManager() == null) { transactionContext = RemoteTransactionContext.getInstance(); } else { transactionContext = AccessController.doPrivileged(new PrivilegedAction<RemoteTransactionContext>() { @Override public RemoteTransactionContext run() { return RemoteTransactionContext.getInstance(); } }); } }
/** * Get a {@code UserTransaction} object instance which can be used to control transactions on a specific node. * * @param targetNodeName the node name (ignored) * @return the {@code UserTransaction} instance * @throws IllegalStateException if the transaction context isn't set or cannot provide a {@code UserTransaction} instance */ @Deprecated @SuppressWarnings("unused") public static UserTransaction getUserTransaction(String targetNodeName) { return RemoteTransactionContext.getInstance().getUserTransaction(); }
private RemoteUserTransaction getRemoteUserTransaction() { AuthenticationContext context = providerEnvironment.getAuthenticationContextSupplier().get(); return context.runFunction(RemoteTransactionContext::getUserTransaction, RemoteTransactionContext.getInstance()); }
@Override public RemoteTransactionContext run() { return RemoteTransactionContext.getInstance(); } });
HttpEJBReceiver() { transactionContext = RemoteTransactionContext.getInstance(); }
HttpEJBReceiver() { if(System.getSecurityManager() == null) { transactionContext = RemoteTransactionContext.getInstance(); } else { transactionContext = AccessController.doPrivileged(new PrivilegedAction<RemoteTransactionContext>() { @Override public RemoteTransactionContext run() { return RemoteTransactionContext.getInstance(); } }); } }
/** * Get a {@code UserTransaction} object instance which can be used to control transactions on a specific node. * * @param targetNodeName the node name (ignored) * @return the {@code UserTransaction} instance * @throws IllegalStateException if the transaction context isn't set or cannot provide a {@code UserTransaction} instance */ @Deprecated @SuppressWarnings("unused") public static UserTransaction getUserTransaction(String targetNodeName) { return RemoteTransactionContext.getInstance().getUserTransaction(); }
/** * Get a {@code UserTransaction} object instance which can be used to control transactions on a specific node. * * @param targetNodeName the node name (ignored) * @return the {@code UserTransaction} instance * @throws IllegalStateException if the transaction context isn't set or cannot provide a {@code UserTransaction} instance */ @Deprecated @SuppressWarnings("unused") public static UserTransaction getUserTransaction(String targetNodeName) { return RemoteTransactionContext.getInstance().getUserTransaction(); }
private RemoteUserTransaction getRemoteUserTransaction() { AuthenticationContext context = providerEnvironment.getAuthenticationContextSupplier().get(); return context.runFunction(RemoteTransactionContext::getUserTransaction, RemoteTransactionContext.getInstance()); }
private RemoteUserTransaction getRemoteUserTransaction() { AuthenticationContext context = providerEnvironment.getAuthenticationContextSupplier().get(); return context.runFunction(RemoteTransactionContext::getUserTransaction, RemoteTransactionContext.getInstance()); }