[jboss-user] [EJB 3.0] - Needs to find Rules for Entity Lazy Loading, LazyInitializat
do-not-reply at jboss.com
Tue Jul 1 15:22:42 EDT 2008
I need to find a write up on the rules for entity lazy loading. My knowledge has been gathered by experimentation and examples. I have this scenario that I do not understand.
In an SLSB I load an entity using entityManager.find()
I pass that entity to a method in another class (which passes it along to others). Several layers into the call stack when a getter is called on the entity a LazyInitializationException gets thrown. I thought since the entity is under control of the entitymanager in the SLSB and that SLSB method is still active all should be okay. That is not the case since the exception is thrown. I need a place to read all of the rules related to this (dos, donts)
Why is this happening?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161882#4161882
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161882
More information about the jboss-user