I'm using hibernate in a webApplication developed on Tomcat 6.0.16.
I've read that in these cases it's better to leave Session management as a Tomcat task.
Anyway I read in this post
http://www.hibernate.org/114.html:
Using Hibernate with Tomcat
If you use Hibernate on Tomcat you don't have to use Tomcat's JNDI-bound JDBC connections. You can let Hibernate manage the JDBC connection pool. This works on all versions of Tomcat and is very easy to configure.
I can't understand it's the better approach...any suggestion?
thanks in advance