Re: T5: getting new Hibernate session in a lengthy thread

2009-03-15 Thread Lutz Hühnken
Hi Angelo, I think the point of sticking the session to the request is to keep it open until the request is processed, to avoid LazyInitializationExceptions during view rendering. So you might have to do your session management without the HibernateSessionManager. Then again, I wonder if it reall

T5: getting new Hibernate session in a lengthy thread

2009-03-10 Thread Angelo Chen
Hi, I need to run a lengthy thread where some database update happens, is there a way to minimize the time when a Hibernate Session is used? something similar to: do while not done // do some processing here obtain a session use the session release the session e