Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: Hibernate 3
Hi, we are developing a web application with Hibernate 3, Websphere and EJB 2.1 (stateless session EJB) and we have a problem with the Hibernate session.
The problem is that if we want to access a lazy relationship in the web view, we get de LazyInitializationException because the session is closed. We are using a Filter that takes care of the session and it doesn´t close it until the view is totally rendered, but it doesn´t work.
We think the reason is that CMT transaction manager closes the session automatically when a transaction finishes and when accesing the session in view to acces a lazy relationship, it has been previously closed.
Any suggestions??