I am using Hibernate 3.2.6 + Spring 2.5.5 + JBoss 4.2.2.GA + envers 1.1.0.GA, and envers was not writing the versioning records once we switched from Spring's HibernateTransactionManager to its JtaTransactionManager (I could see that the envers beforeCompletion() hook was not being called) . Adding
Code:
<prop key="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</prop>
<prop key="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</prop>
to my Hibernate config fixed the issue.
Thanks, rajiv65!
-Daniel-