thankx for answering so promptly.
Well i deliberately use the HttpSession to store the Hibernate session.
Cause i want to limit the database access and give top priority to the hibernate cache.
I've read the "open session in view" but i am not familiarised with this filter stuff.
And the Persistance class that implement the TreadLocal stuff you are talking about is not obvious to me since there is no example provided with it (
http://www.hibernate.org/43.html)
Sorry me, but i 've never used EJB and j2ee application server.
I am using hibernate with tomcat and struts, and i am not developping a critical banking application (no transactions in my application).
Need a full example to understand (Filter + view and use)!!
;-)
Thanx anyway