private final static String getTransactionManagerJNDIName() { return jtaPropertyManager.getJTAEnvironmentBean().getJtaTMJNDIContext(); }
/** * Retrieve a reference to the transaction manager from the passed in JNDI initial context. * @param ctx The JNDI initial context to lookup the Transaction Manager reference from. * @return The transaction manager bound to the appropriate JNDI context. Returns null * if the transaction manager cannot be found. * * @message com.arjuna.ats.jta.TransactionManager.jndifailure Failed to lookup transaction manager in JNDI context * @message com.arjuna.ats.jta.TransactionManager.generalfailure Failed to create instance of TransactionManager */ public static javax.transaction.TransactionManager transactionManager (InitialContext ctx) { javax.transaction.TransactionManager transactionManager = null; try { transactionManager = (javax.transaction.TransactionManager)ctx.lookup(jtaPropertyManager.getJTAEnvironmentBean().getJtaTMJNDIContext()); } catch (Exception e) { if ( jtaLogger.loggerI18N.isWarnEnabled() ) { jtaLogger.loggerI18N.warn("com.arjuna.ats.jta.TransactionManager.jndifailure", e); } } return transactionManager; }