Re: T5ï¼s getting new Hiberna te session in a lengthy thread

2009-03-10 Thread Angelo Chen
Hi, HibernateSessionManagerImpl uses HibernateSessionSource to create a session, if we use HibernateSessionSource service in code as suggested by you, then seems ok, right? dh ning wrote: > > Sorry, my fault. If code don't call any method of HibernateSessionManager, > it won't create a sessio

Re: T5ï¼s getting new Hiberna te session in a lengthy thread

2009-03-10 Thread Angelo Chen
that will be a thread trigger by Quartz, create the session, close the session repeat this until thread is over, i don't know any impact from Tapestry-Hibernate. dh ning wrote: > > I haven't tried it yet because now my application is out of > tapestry-hibernate. > But from source code of tapest

Re: T5ï¼s getting new Hiberna te session in a lengthy thread

2009-03-10 Thread Angelo Chen
Hi DH, That sounds doable, we will inject the HibernateSessionSource then call create() to obtain the session? Angelo dh ning wrote: > > Maybe you can directly use HibernateSessionSource service instead of > HibernateSessionManager. > HibernateSessionSource.create() creates a new session alwa