Hibernate Team |
|
Joined: Sun Sep 14, 2003 3:54 am Posts: 7256 Location: Paris, France
|
Bad solution.
Keeping the session opened (neither disconnected or closed) implies that your have 1 dB connection for each user. Might be a problem or not, check your DBA.
1 long running session keep data. data become stale when other users play with. => you'll have lot's of concurrent errors (1 user use an old reading of A which has been updated by another).
Try to use session for each 'user transaction', it'll be fine
_________________ Emmanuel
|
|