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: [EMAIL PROTECTED]



Reply via email to