Oups, never fully trust JavaDoc, correct...
A continuation branch is disposed of only when its leaf expires, see
ContinuationsManagerImpl.
 handleParentContinuationExpiration(WebContinuation):
"When a new continuation is created ... its parent continuation is
removed from the expiration set. This way only leaf continuations are
part of the expiration set."
And true from double code check ;)

So depending on how your navigation works the currently navigated branch
can survive a long time...
But when a "leaf" continuations expires (according to the configured
time to live) it is binned, and all of its recursive parents having no
other chidren...

Laurent

-----Original Message-----
From: Leszek Gawron [mailto:[email protected]] On Behalf Of Leszek
Gawron
Sent: mercredi 26 octobre 2011 09:44
To: [email protected]
Subject: Re: thought I had fixe it

On 2011-10-26 09:36, Laurent Medioni wrote:
> According to JavaDoc:
> = "How long does a continuation exist in memory since the last access?
> The time is in miliseconds, and the default is 1 hour"
> And reading the code confirms this statement.
> Laurent

which is probably not true.

Thing is: continuations are stored "chained". What i mean is :

  - user creates a first continuation in some UI processing
  - cocoon stores that continuation
  - user naviagates back and creates a new continuation
  - that new continuation is linked to the old one
  - user may navigate back to some previous continuation and start a
    branch
  - a continuation tree gets removed from memory when ALL the leaves
    expire (still I don't remember if older "root" get expired so even
    if in memory you cannot access these continuations)
  - this means you can grow continuation tree indefinitely

My knowledge is at least 4-5 years old. I advise to check the source 
code of ContinuationsManagerImpl

        lg

-- 
Leszek Gawron                            http://lgawron.posterous.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

The information in this e-mail and any attachments is confidential and may be 
legally privileged. 
It is intended solely for the addressee or addressees. Any use or disclosure of 
the contents 
of this e-mail/attachments by a not intended recipient is unauthorized and may 
be unlawful. 
If you have received this e-mail in error please notify the sender. 
Please note that any views or opinions presented in this e-mail are solely 
those of the author and 
do not necessarily represent those of TEMENOS. 
We recommend that you check this e-mail and any attachments against viruses. 
TEMENOS accepts no liability for any damage caused by any malicious code or 
virus transmitted by this e-mail.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to