so if i understand:
we can use the same session with commit / disconnection / reconnection per httpRequest during several "jsp". The db won't be affected since no flush is done (Session.setFlushMode(FlushMode.NEVER)).
At the validation (last jsp), we just have to explicitly call
session.reconnect(); //no pb in case of deserialization
// make some job, or make nothing if the job has been done in previous
//HttpRequests (but without flushing)
session.flush();
tx.commit();
session.close();
But, in a loadbalanced environement, this can only be done if unflushed session is serializable
So as you said, the jira issue is created
http://opensource.atlassian.com/project ... wse/HB-896
Thanks again for explanation,
Anthony