You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "William H. Mitchell" <wh...@MitchellSoftwareEngineering.com> on 2008/01/02 22:35:51 UTC

HttpSession timeout/invalidation handling in Orchestra?

I've spent a while digging around in the Orchestra code to figure out 
how Orchestra responds to the termination of a session (e.g. a call 
to HttpSession.invalidate()) but I'm still fuzzy on it.

Can anybody comment on how Orchestra handles this and/or steer me 
towards the code involved?


Re: HttpSession timeout/invalidation handling in Orchestra?

Posted by Werner Punz <we...@gmail.com>.
William H. Mitchell schrieb:
> I've spent a while digging around in the Orchestra code to figure out 
> how Orchestra responds to the termination of a session (e.g. a call to 
> HttpSession.invalidate()) but I'm still fuzzy on it.
> 
> Can anybody comment on how Orchestra handles this and/or steer me 
> towards the code involved?
> 
> 
Well, I assume it will lose the conversation context.
and all its conversations.

I am not sure if the conversations then are closed properly, there is
a garbage collecting thread internally which closes non used 
conversations from time to time, but I am not sure if that one can reach
the tangeling conversations then.

It is a save bet to clear out the current conversation context
before invalidating the session, that way you definitely can be sure 
that all conversations are closed before you drop your session.