* 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to