cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Quenot <...@anyware-tech.com>
Subject Re: Where to store a hibernate session in Flow?
Date Fri, 06 Aug 2004 08:29:57 GMT
* Mark Lundquist:

> Why do you need to close the factory?  Just leave it open.
>
> You might also  look at implementing the Thread  Local Session pattern
> (http://hibernate.bluemars.net/42.html).   I  implement  this  pattern
> with a class called HibernateFactory, which wraps the session factory

You're right,  no need  to close  the factory, just  use the  same every
time.  Your solution is good, but Sylvain suggested instead to implement
ThreadSafe in the  HibernateFactory Avalon component, to  ensure that it
is instantiated once.  Is that sufficient?
-- 
Jean-Baptiste Quenot
Anyware Technologies
http://www.anyware-tech.com/

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


Mime
View raw message