Hi,
Looking at the current-session design here:
http://www.hibernate.org/42.html it seems to me it cannot handle retries on StaleObjectStateException.
To my understanding, if I wanted to retry the operation on StaleObjectStateException, I'd have to rollback the current transaction and session, open a new session and transaction and re-execute the servlet. The problem is that there is no way for me to invoke the Servlet a second time with the original ServletRequest/ServletResponse objects. If the servlet uses ServletRequest.getInputStream() -- as mine does -- the stream is "used up" by the first run.
The only way I can think of making this work is making the servlet do some session management; but doesn't this defeat the entire purpose of the "current-session" design (i.e. we're trying to hide Session management)?
Any ideas would be most welcome.