So the note in
http://hibernate.org/42.html...stating that
Every other HibernateUtil is obsolete for Hibernate 3.1. pertains to the
HIA thread-local example (listing 8.3) too?
Does enabling the thread-bound strategy (see below) in your Hibernate configuration solve the same problem the thread-local
HIA HibernateUtil was solving?
Quote:
To enable the thread-bound strategy in your Hibernate configuration:
set hibernate.transaction.factory_class to org.hibernate.transaction.JDBCTransactionFactory
set hibernate.current_session_context_class to thread