Hi Paul. The sample code from this link does not have "session.flush()" either.
http://www.hibernate.org/43.html Everytime it passes thru filter, it does not close the connection. I did try to close it by simply invoking the session.close(), still it does not work. I completely used now the Open Session in View.
David, that does not solve the problem.
I am still confused why the sample code from Hibernate website itself does not show any closing of the session while it says, it has too.
Also, I tried to close the session from my DAO but I am getting a LazyInitializationException.
Thanks for the help guys.
[ October 22, 2007: Message edited by: Erap Estrada ]