Hi i have a question regarding the session-per-application-transaction part of this link.
http://www.hibernate.org/168.html
It claims that
Quote:
Atomicity of the application transaction is only guaranteed if only one Request/Response cylce writes data, all others before just read
.
I hoped someone could explain it in more detail because I would like to use this design on my system.
I want to open of session for a registration process that span over many requests.
For each request I open a transaction, do some saving and reading from database, commit a transaction,disconnect the session. And when the whole registration process is completed I would like to close the session.
I would like to hold the session for the whole duration of the registration process, because of lazy loading. Is this a bad idea should I instead close the session, and manually lock the object to the new session?
any comments on my approach?