cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Bielza" <nicolas.bie...@alligacom.com>
Subject RE: Flow + Hibernate and lazy initialization
Date Wed, 09 Jun 2004 14:08:33 GMT
Yes, I tried it just to make sure and it doesn't work :-(

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).

I wonder if sendPageAndWait, with timeToLive set to 0 does create a
continuation object ?

Nicolas.

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Luca Morandini
Sent: 9 juin, 2004 08:56
To: users@cocoon.apache.org
Subject: Re: Flow + Hibernate and lazy initialization


Leszek Gawron wrote:

> Have you tried this?:
> 
> function someView() {
>     var session = obtainSession();
>     var data = dao.getData( session );
>     cocoon.sendPage( "view/someView.jx",
              ^^^^^^^^
>                      { data: data },
>                      function() { session.close(); } );
> }

Did you mean "sendPageAndWait" instead ?
According to the doc, "sendPage" has no "postPipelineCode" argoment... 
neither it should have, IMO, since there is no script suspension.

Regards,

---------------------------
      Luca Morandini
    lmorandini@ieee.org
http://www.lucamorandini.it
---------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message