Hello Guys
I was having problems with Jboss7 and Hibernate3
I was using org.hibernate.transaction.JBossTransactionManagerLookup but it does not work in JBoss AS 7
The solution to the problem is simple.
I created a class with the following value
Code:
public class JBoss7TransactionManagerLookup extends JNDITransactionManagerLookup {
@Override
public String getUserTransactionName() {
return "java:module/UserTransaction";
}
@Override
protected String getName() {
return "java:jboss/TransactionManager";
}
}
I hope it is of interest to someone else
Sorry for my bad English