[jboss-user] [JBoss Portal] - Re: Wrong tx on thread in UserModule
PMN
do-not-reply at jboss.com
Mon Mar 31 19:04:38 EDT 2008
The AS must be running
TransactionManager tm= (TransactionManager) new InitialContext().lookup("java:/TransactionManager");
In 2.6.4 sources there is a test portlet that get the current transaction like this. (I never tried it)
private Transaction getCurrentTransaction()
| {
| try
| {
| return TransactionManagerProvider.JBOSS_PROVIDER.getTransactionManager().getTransaction();
| }
| catch (Exception e)
| {
| return null;
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140294#4140294
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140294
More information about the jboss-user
mailing list