This is a fundamental question of paramount importance to EJB 3.0 entity bean
development. EJB 3.0 keeps it simple and loads everything. You can take a
different tack and lazy load everything for maximum performance.
When you get an exception such as yours, you can analyze the situation. If tha
That's great! I got it. Thank you so much.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927880#3927880
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927880
---
Th
Either that or make your fetch type eager.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927878#3927878
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927878
---
Th
Hi, thank you very much for your response.
"Writing a getFiles method in your stateless bean" means to create another
EJBQL to retrieve files using the passed folder object. Is it correct? Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927865#3927865
The session is opened and closed inside the stateless bean method. Once the
folder object is passed back across the wire, it is no longer connected to the
session / datasource and cannot retrieve the files. You might consider writing
a getFiles method in your stateless bean and call that inste
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
if you are using the remote interface when the bean is serialized the field
files is null and jboss does not initialize the field because you ask to be
lazy, peraphs if you client lives in the container using @local interface the
things must work
View the original post :
http://www.jboss.com/i
Did you call getFiles() in your Session Bean before calling the method on the
entity in the client?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927680#3927680
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927680