init();
}
private void init() throws Exception
{
TransactionManagerImpl tm = TransactionManagerImpl.getInstance();
UserTransactionProxy ut = UserTransactionProxy.getInstance();
// server/16g0
// Applications are incorrectly using TransactionManager
// as an extended UserTransaction
Jndi.bindDeep("java:comp/TransactionManager", tm);
//TODO Is this alias used?
Jndi.bindDeep("java:/TransactionManager", tm);
Jndi.bindDeep("java:comp/TransactionSynchronizationRegistry",
tm.getSyncRegistry());
Jndi.bindDeep("java:comp/UserTransaction", ut);
Jndi.bindDeep("java:comp/ThreadPool",
ResinThreadPoolExecutor.getThreadPool());
}