Re: [OT] Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Yayo
Oki, thanks, I've posted to Spring mailing list with my problem ^g^ On Wed, Apr 2, 2008 at 11:14 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > This isn't really a Struts issue, since you're asking how to drive your > service/dao layout from a thread outside the context of a Struts-served > reque

Re: [OT] Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Laurie Harper
This isn't really a Struts issue, since you're asking how to drive your service/dao layout from a thread outside the context of a Struts-served request. What you need to do in that case is to manage the Hibernate session from your worker thread. The thread needs to setup and open the Hibernate

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Yayo
Sorry, more explanation is needed... I've got to launch a "batch process" it's not a batch but it's a long lasting process that could raise a timeout and tomcat will kill the worker thread... So I've launched a worker of my own to do the job and inform the user with a progress indicator or the like

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Adam Hardy
Yayo on 02/04/08 20:23, wrote: I'm developing a struts - spring based application. I've got actions-delegates-managers and daos and I use the open session in view filter from hibernate. In some cases I've got to return lazy results to the user so I've got to launch a new worker thread and taht

Re: Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Gabriel Belingueres
Try to post a stack trace or something more meaningful, but first of all, as a general architectural guideline, try first to refactor your code to avoid circular dependencies. 2008/4/2, Yayo <[EMAIL PROTECTED]>: > Hi, > > I'm developing a struts - spring based application. > > I've got actions-de

Struts - Spring - hibernate and lazy initialization

2008-04-02 Thread Yayo
Hi, I'm developing a struts - spring based application. I've got actions-delegates-managers and daos and I use the open session in view filter from hibernate. In some cases I've got to return lazy results to the user so I've got to launch a new worker thread and taht new one doesn't have an hib