cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: Flow + Hibernate and lazy initialization
Date Wed, 09 Jun 2004 22:09:07 GMT
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.
> 
> Regards,
> 
> Nicolas.
> 
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Luca Morandini
> Sent: 9 juin, 2004 17:01
> To: users@cocoon.apache.org
> 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.
If this is as you say you should raise this problem at cocoon-dev. I 
also wanted to loose Open Session In View pattern in favor of some 
hibernate avalon component, but that looks impossible now.
	LG

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


Mime
View raw message