Thank you all for your response. What I did is:

First, I use JSF session bean to call local interface of dao stateless bean to 
get a folder instance using a EJBQL, then call the folder.getFiles() in the JSF 
session bean to try to get all files under the folder. If I set 
fetch=FetchType.LAZY, I would get exception shown above. If I set 
fetch=FetchType.EAGER, it will work. I do not know why I got the exception on 
the LAZY. Thanks for your help.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to