Announcement Announcement Module
No announcement yet.
Hibernate Lazy Loading with Spring and Tapestry Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 :

    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