Beginner |
|
Joined: Tue Jul 19, 2005 4:03 am Posts: 34 Location: Aberdeen, UK
|
We are not running Hibernate 3, but we have integrated Hibernate with JBoss using the HibernateContext, enabling the Interceptor by configuring the Hibernate MBean (hibernate-service.xml)
Using this configuration, we implemented a simple Logging Utility based on the Interceptor example section 8.3.2 Audit Logging in the book Hibernate Action (Bauer/King).
Basically the only thing we had to change was to create an unmanaged session using the HibernateContext. By doing this, I don’t think you need to explicitly handle the transactions.
|
|