[jboss-user] [EJB 3.0] - Re: Proxy-Class

MistaMoasn do-not-reply at jboss.com
Thu Nov 15 08:00:14 EST 2007


Hi!

I already figured out what went wrong. The behavior with the proxy-class is right, i misunderstood some thing.

The stateful session bean gets it's EntityManager (= variable em) injected. While i've been working within the method getProject() (with the instanceof operator) i'm "walking" inside the persistence context. Inside the persistence context there are proxy-objects. 

Well, outside the persistence context the object has the right instance and i can work with it as desired. I had the impression the inheritance hierarchy was not eager fetched due to that.

Fortunately, everything's fine now... 

kind regards
Patrik


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104994#4104994

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104994



More information about the jboss-user mailing list