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