/** * Bind the currently configured TransactionSynchronizationRegistry implementation to the passed in * JNDI context. * @param initialContext * @throws javax.naming.NamingException */ public static void bindJTATransactionSynchronizationRegistryImplementation(InitialContext initialContext) throws javax.naming.NamingException { /** Look up and instantiate an instance of the configured TransactionSynchronizationRegistry implementation **/ String tsrImplementation = jtaPropertyManager.getJTAEnvironmentBean().getTransactionSynchronizationRegistryClassName(); Object tsr = null; try { tsr = Class.forName(tsrImplementation).newInstance(); } catch(Exception e) { NamingException namingException = new ConfigurationException(jtaLogger.i18NLogger.get_utils_JNDIManager_tsr1()); namingException.setRootCause(e); throw namingException; } /** Bind the TransactionSynchronizationRegistry to the appropriate JNDI context **/ initialContext.rebind(getTransactionSynchronizationRegistryJNDIName(), tsr); }
/** * Bind the currently configured TransactionSynchronizationRegistry implementation to the passed in * JNDI context. * @param initialContext * @throws javax.naming.NamingException */ public static void bindJTATransactionSynchronizationRegistryImplementation(InitialContext initialContext) throws javax.naming.NamingException { /** Look up and instantiate an instance of the configured TransactionSynchronizationRegistry implementation **/ String tsrImplementation = jtaPropertyManager.getJTAEnvironmentBean().getTransactionSynchronizationRegistryClassName(); Object tsr = null; try { tsr = Class.forName(tsrImplementation).newInstance(); } catch(Exception e) { NamingException namingException = new ConfigurationException(jtaLogger.i18NLogger.get_utils_JNDIManager_tsr1()); namingException.setRootCause(e); throw namingException; } /** Bind the TransactionSynchronizationRegistry to the appropriate JNDI context **/ initialContext.rebind(getTransactionSynchronizationRegistryJNDIName(), tsr); }
/** * Bind the currently configured TransactionSynchronizationRegistry implementation to the passed in * JNDI context. * @param initialContext * @throws javax.naming.NamingException */ public static void bindJTATransactionSynchronizationRegistryImplementation(InitialContext initialContext) throws javax.naming.NamingException { /** Look up and instantiate an instance of the configured TransactionSynchronizationRegistry implementation **/ String tsrImplementation = jtaPropertyManager.getJTAEnvironmentBean().getTransactionSynchronizationRegistryClassName(); Object tsr = null; try { tsr = Class.forName(tsrImplementation).newInstance(); } catch(Exception e) { NamingException namingException = new ConfigurationException(jtaLogger.i18NLogger.get_utils_JNDIManager_tsr1()); namingException.setRootCause(e); throw namingException; } /** Bind the TransactionSynchronizationRegistry to the appropriate JNDI context **/ initialContext.rebind(getTransactionSynchronizationRegistryJNDIName(), tsr); }
/** * Bind the currently configured TransactionSynchronizationRegistry implementation to the passed in * JNDI context. * @param initialContext * @throws javax.naming.NamingException */ public static void bindJTATransactionSynchronizationRegistryImplementation(InitialContext initialContext) throws javax.naming.NamingException { /** Look up and instantiate an instance of the configured TransactionSynchronizationRegistry implementation **/ String tsrImplementation = jtaPropertyManager.getJTAEnvironmentBean().getTransactionSynchronizationRegistryClassName(); Object tsr = null; try { tsr = Class.forName(tsrImplementation).newInstance(); } catch(Exception e) { NamingException namingException = new ConfigurationException(jtaLogger.i18NLogger.get_utils_JNDIManager_tsr1()); namingException.setRootCause(e); throw namingException; } /** Bind the TransactionSynchronizationRegistry to the appropriate JNDI context **/ initialContext.rebind(getTransactionSynchronizationRegistryJNDIName(), tsr); }
/** * Bind the currently configured TransactionSynchronizationRegistry implementation to the passed in * JNDI context. * @param initialContext * @throws javax.naming.NamingException */ public static void bindJTATransactionSynchronizationRegistryImplementation(InitialContext initialContext) throws javax.naming.NamingException { /** Look up and instantiate an instance of the configured TransactionSynchronizationRegistry implementation **/ String tsrImplementation = jtaPropertyManager.getJTAEnvironmentBean().getTransactionSynchronizationRegistryClassName(); Object tsr = null; try { tsr = Class.forName(tsrImplementation).newInstance(); } catch(Exception e) { NamingException namingException = new ConfigurationException(jtaLogger.i18NLogger.get_utils_JNDIManager_tsr1()); namingException.setRootCause(e); throw namingException; } /** Bind the TransactionSynchronizationRegistry to the appropriate JNDI context **/ initialContext.rebind(getTransactionSynchronizationRegistryJNDIName(), tsr); }
/** * Bind the currently configured TransactionSynchronizationRegistry implementation to the passed in * JNDI context. * @param initialContext * @throws javax.naming.NamingException */ public static void bindJTATransactionSynchronizationRegistryImplementation(InitialContext initialContext) throws javax.naming.NamingException { /** Look up and instantiate an instance of the configured TransactionSynchronizationRegistry implementation **/ String tsrImplementation = jtaPropertyManager.getJTAEnvironmentBean().getTransactionSynchronizationRegistryClassName(); Object tsr = null; try { tsr = Class.forName(tsrImplementation).newInstance(); } catch(Exception e) { NamingException namingException = new ConfigurationException(jtaLogger.i18NLogger.get_utils_JNDIManager_tsr1()); namingException.setRootCause(e); throw namingException; } /** Bind the TransactionSynchronizationRegistry to the appropriate JNDI context **/ initialContext.rebind(getTransactionSynchronizationRegistryJNDIName(), tsr); }