-
Dec 18th, 2005, 07:30 PM
#1
Hibernate Lazy Loading with Spring and Tapestry
It looks like i'm facing a rather common problem here .
I am using latest spring , hibernate 3 and tap 4 . I have the default true setting for lazy loading in hibernate . I would like to take advantage of this , from within the tapestry 4 layers .
I am getting the : no session or session closed error .
I've searched the forum , and came across a few good posts aslo a good article : http://www.jroller.com/comments/kbau...ation_with_dao
However if i'm understanding the article right , it's talking about having an interceptor aplied to a spring business object that initialises the session when needed ?
First off I thought the session is open if trasactions are properly setup .
Secondly ... that does me no good when trying to access a lazy collection from a tapestry Page or Component .
Is there a common fix for this scenario also , or am I just understanding this wrong ? ... can I maybe set the tap Page as a spring bean and put the intercecptor on it ?
Anticipated thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules