This content has been marked as final.
Show 2 replies
-
1. Re: JBoss AS 7 UserTransaction
ffrizzo Aug 16, 2011 6:37 PM (in response to ffrizzo)I do not know if you already had the solution somewhere but I ended up getting arrrumar here.
Actually I had not stopped to pay attention.
Problem is not in the Spring or JBoss, but in Hibernate 3
The solution was simple created a TransactionManagerLookup passing the correct values
public class JBoss7TransactionManagerLookup extends JNDITransactionManagerLookup { @Override public String getUserTransactionName() { return "java:module/UserTransaction"; } @Override protected String getName() { return "java:jboss/TransactionManager"; } }
Thanks
-
2. Re: JBoss AS 7 UserTransaction
nicholashemley Dec 15, 2011 5:48 AM (in response to ffrizzo)FYI JBoss 7.0.2 uses java:jboss/UserTransaction and not
java:module/UserTransaction
E.g.
{code}
public class JBossAS7TransactionManagerLookup extends JNDITransactionManagerLookup {
@Override
protected String getName() {
return "java:jboss/TransactionManager";
}
@Override
public String getUserTransactionName() {
return "java:jboss/UserTransaction";
}
}
{code}