I am using JBoss Portal bundle 2.6.2 with Hibernate3 annotations and lazy fetch params
I start a session manually when I need data via a DAO. The problem is if I close the session after getting data but before rendering a portlet, I will not be able to access my objects properties in the JSP, since lazy fetching only fetches them when I access the properties.
And closing session right after rendering a portlet means I need to open the session with every portlet that gets displayed on the page
Isn't there a way to open a session at the start of actions and close it after all rendering has happened?