cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <u....@cbim.it>
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 (http://hibernate.bluemars.net/43.html) and found it to be much 
easier and robust.

YMMV ;-)

	Ugo

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


Mime
View raw message