Hi and thank you for the reply!
Are you sure about the duration of the conversation?
I've read some articles on the session-per-conversation pattern with hibernate and one explicitly speaks about multiple input masks in an application.
It says that one way to implement the pattern was to open a session at the login and use it for all the different input masks an application requires.
Finally close it at the logout, just like I do it.
Unfortunately it's in German (
http://www.ordix.de/ORDIXNews/2_2007/Ja ... ation.html).
What would be the drawback if I kept the session open over the whole time between login and logout?
To my understanding, the session serves as some kind of cache.
So the longer it is open, the higher is the probability that the cache gets old.
For applications with only few users this should be fine, expecially if I regularly do a session.flush in order to persist the data to the database.
Are there any other specific reasons for not keeping a session open for such a long time?
Greetings,
Steve