This content has been marked as final.
Show 1 reply
-
1. Re: access TransactionManager thru JNDI outside of the conta
azhurakousky Mar 14, 2007 1:40 PM (in response to jblas)No, you can not access Transaction Manager outside of the container. If you want to test somoething in the send box using JTA JBoss has DummyTransactionManager that you can use:
// Set up transaction manager DummyTransactionManager.getInstance(); Properties prop = new Properties(); prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.cache.transaction.DummyContextFactory"); UserTransaction tx = (UserTransaction)new InitialContext(prop).lookup("UserTransaction");
Hope it helps