I don't think it's a bug. sendPage() doesn't wait for the pipeline to complete. If I close my Hibernate connection right after the call to sendPage(), the lazy initialization fails (in the velocity generator step). I need to know when the pipeline processing is complete so I can safely close the session.
Regards, Nicolas. -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Luca Morandini Sent: 9 juin, 2004 17:01 To: [EMAIL PROTECTED] Subject: Re: Flow + Hibernate and lazy initialization Nicolas Bielza wrote: > > According to the doc, the postpipeline code is useful to release > resources that should not become part of the continuation, but are > needed during pipeline processing. Although there's no script > suspension with cocoon.sendPage(), it's not unlikely that some > resources should be released after pipeline processing is complete > (and it's exactly what I need to achieve). Well, I cannot see why the releasing cannot be done in the Javascript statement following the sendPage... assuming the behaviour you observed was not just a bug in the Flowscript component, of course. Regards, --------------------------- Luca Morandini [EMAIL PROTECTED] http://www.lucamorandini.it --------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
