Hibernate version: 2.1.8
I've been searching docs, forums, and google for how to get Hibernate to automatically work with JTA to registerSynchronization so that it automatically flushes and closes at the end of the JTA transaction. Obviously this goes hand-in-hand with thread local session and all that jazz.
I see in JBoss 3/4 there's a HibernateContext class that does exactly what I want, except that it depends on the JBoss TM, rather than using Hibernate's transaction.manager_lookup_class (which would make it portable across app servers).
I want a portable solution. Are there any plans to integrate such functionality into the core distribution?
Thanks,
- Jason
|