quoting from the wiki...

https://wiki.apache.org/tapestry/Tapestry5AvoidingLazyInitializationExceptions
"*To really solve Lazy Initialization Exceptions, you need to find out why
the Hibernate session closed before you wanted it to, and/or you need to
get a new session reattach the object."*
*
*
*
*
*
*
*
*
*Hi Tapestry Users*,
The above quote may be good advice on the wiki? However the wiki entry is
lacking example code to show how to practically apply the good advice.

So...
Can anyone answer my following query about the methodology proposed on the
tapestry wiki page?

Is there any sample/example code u know of that where upon finding the
hibernate session is closed, it creates a new hibernate session and then
somehow reattaches it to the apps
org.apache.tapestry5.hibernate.HibernateSessionManager?

I need to drill in to a (Entity tree node w/ lazy fetch Children Entity
nodes) tree model and recursively perform some behavior on each node in an
entire sub tree for any given tree node.

Right now I'm stuck behind a LazyInitialization Exception because the
hibernate session is closed
when I attempt to access a child nodes' children in my UI's actionlink
handler method.


TIA
Jon





*
*

Reply via email to