[jboss-user] [JNDI/Naming/Network] - Re: access TransactionManager thru JNDI outside of the conta
azhurakousky
do-not-reply at jboss.com
Wed Mar 14 13:40:49 EDT 2007
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028068#4028068
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028068
More information about the jboss-user
mailing list