Quote:
My HTTP session store a hibernate session which i reconnect and disconnect everytime the filter is invoked.
this is a nice way of doing, Christian also calls it "persistent context" (i've been in the Paris training ;)) ) but be sure to use this only for a unit of work, that is to say 5 screens for example if you need 5 screens to do your job. After this, commit and close().
Of course don't forget to set flushMode.NEVER and commit transaction at each request!. If you don't do this you'll surely have write locks because of unfinished database transaction.
Don't use a hibernate session per "long" user, or you'll soon have a huge session and stale datas.
session.reconnect() just means that the session is ready to execute its job, if it has nothing to do, it will not get a jdbc connection from the pool.