> -----Original Message-----
> From: Markus Eberle [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 20, 2005 9:35 AM
> To: Tapestry users
> Subject: Re: Hibernate + Spring: LazyInitializationException
> 
> 
> But if i am putting the hibernate-session into the 
> http-session and the user
> starts to "click" around in a second window, how do i decide, 
> when to close the
> hibernate-session, as suddenly there are two or even more 
> "transactions"
> associated with it?
> 

It's the same problem you have with each kind of server-side-state. You
close the session, when the user is done with the domain-objects you're
holding on the server (in the http-session). You could, of course, let the
hibernate session last until the http-session expires if you need to.
I'd just say, if server-side-state is at all acceptable for you (which might
not be the case, of course), then long sessions are the nicest thing I know.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to