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 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user