Nicolas Bielza wrote:

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.

If one assumes sendPage to be the last statememt in a flowscript function, then there is no reason to wait for the pipeline to be processed... but if this is not true, as in your case, I think the "synchronize" option (to wait the end of pipeline before proceeding to the next javascript statement) makes sense: I presume this has to be raised on cocoon-dev (a thorough search in the mail archives would be appreciated before raising the issue on that list, of course).


Regards,

---------------------------
     Luca Morandini
   [EMAIL PROTECTED]
http://www.lucamorandini.it
---------------------------


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



Reply via email to