They recommend using JTA transaction support in Java EE environment.
But how to configure JTA in Tomcat6 so that Hibernate Session could use it ?
If you just want to use SessionFactory.getCurrentSession()
you can just add the following two lines to your hibernate.cfg.xml:
org.hibernate.transaction.JDBCTransactionFactory
thread
This will give you a unique Session for each thread. As a servlet request is always handled within one thread (given that your code doesn't spawn new ones), the Session will live for the whole request.
Don't forget to use a filter to close the Session after the request!