cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Quenot <>
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
> (   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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message