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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...