cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <>
Subject Hibernate sessions (was Re: [vote results] FOM)
Date Wed, 18 Jun 2003 09:53:11 GMT
Jeremy Quinn wrote:
> I open a new Hibernate Session at Function invocation, closing it on exit.

FWIW, I've used this pattern in the past and it caused me some problems. 
In particular, you risk leaving a session open whenever the user does 
not complete the form submission.

In my latest project, I've started using the "Open session in view" 
pattern ( and found it to be much 
easier and robust.

YMMV ;-)


Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail:

View raw message