struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yayo <>
Subject Struts - Spring - hibernate and lazy initialization
Date Wed, 02 Apr 2008 19:23:50 GMT

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 hibernate
session attached so I've added hibernateInterceptors to my managers.

The new addition crashes the application because (as I've found on the net)
there's a circular reference as my DAOs need the sessionfactory and the
hibernate interceptor too.

I've found that using lazy initializing of one of the services in the
ciruclar references should do the job but it's still crashing afterall,
maybe I don't know what is the one to be lazily initialized...

any idea??

"Sit tibi terra levis"

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message