/** * Locate the transaction manager * * @return the transaction manager */ public static TransactionManager locateTransactionManager() { return getInstance().locate(); }
/** * Create a new instance. */ public ServerVMClientUserTransaction() { this(TransactionManagerLocator.locateTransactionManager(false), false); }
final Field field = TransactionManagerLocator.class.getDeclaredField("tm"); field.setAccessible(true); field.set(TransactionManagerLocator.getInstance(), jtaEnvironmentBean.getValue().getTransactionManager()); } catch (IllegalAccessException e) { throw new IllegalAccessError(e.getMessage());
transactionManager = TransactionManagerLocator.getInstance().getTransactionManager(); transaction = transactionManager.getTransaction(); if(transaction != null)
/** * Get the transaction manager * * @return the transaction manager */ public TransactionManager getTransactionManager() { return locate(); }
/** * Locate the transaction manager * * @param throwExceptionIfUnableToLocate if true and transaction manager * cannot be located, a RuntimeException is thrown, otherwise null is * returned. * * @return the transaction manager */ public TransactionManager locate(boolean throwExceptionIfUnableToLocate) { if (tm != null) return tm; TransactionManager result = tryJNDI(); if (result == null) result = usePrivateAPI(); if (result == null && throwExceptionIfUnableToLocate) throw new RuntimeException("Unable to locate the transaction manager"); return result; }
final Field field = TransactionManagerLocator.class.getDeclaredField("tm"); field.setAccessible(true); field.set(TransactionManagerLocator.getInstance(), jtaEnvironmentBean.getValue().getTransactionManager()); } catch (IllegalAccessException e) { throw new IllegalAccessError(e.getMessage());
transactionManager = TransactionManagerLocator.getInstance().getTransactionManager(); transaction = transactionManager.getTransaction(); if(transaction != null)
/** * Locate the transaction manager * * @return the transaction manager */ public TransactionManager locate() { return locate(true); }
/** * Locate the transaction manager * * @param throwExceptionIfUnableToLocate if true and transaction manager * cannot be located, a RuntimeException is thrown, otherwise null is * returned. * * @return the transaction manager */ public TransactionManager locate(boolean throwExceptionIfUnableToLocate) { if (tm != null) return tm; TransactionManager result = tryJNDI(); if (result == null) result = usePrivateAPI(); if (result == null && throwExceptionIfUnableToLocate) throw new RuntimeException("Unable to locate the transaction manager"); return result; }
/** * Locate the transaction manager * * @return the transaction manager */ public static TransactionManager locateTransactionManager() { return getInstance().locate(); }
/** * Create a new instance. */ private ServerVMClientUserTransaction() { this(TransactionManagerLocator.locateTransactionManager(false)); }
final Field field = TransactionManagerLocator.class.getDeclaredField("tm"); field.setAccessible(true); field.set(TransactionManagerLocator.getInstance(), jtaEnvironmentBean.getValue().getTransactionManager()); } catch (IllegalAccessException e) { throw new IllegalAccessError(e.getMessage());
/** * Locate the transaction manager * * @return the transaction manager */ public TransactionManager locate() { return locate(true); }
/** * Locate the transaction manager * * @param throwExceptionIfUnableToLocate if true and transaction manager * cannot be located, a RuntimeException is thrown, otherwise null is * returned. * * @return the transaction manager */ public static TransactionManager locateTransactionManager(boolean throwExceptionIfUnableToLocate) { return getInstance().locate(throwExceptionIfUnableToLocate); }
public TransactionManager getTransactionManager() { if (tm == null) tm = TransactionManagerLocator.locateTransactionManager(); return tm; }
/** * Get the transaction manager * * @return the transaction manager */ public TransactionManager getTransactionManager() { return locate(); }
public TransactionManager getTm() { return TransactionManagerLocator.getInstance().locate(); } }
public TransactionManager getTransactionManager() { return TransactionManagerLocator.locateTransactionManager(); } }
protected static TransactionManager getTransactionManager() { return TransactionManagerLocator.getInstance().locate(); } }