File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes ejb not returning colection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejb not returning colection" Watch "ejb not returning colection" New topic

ejb not returning colection

alec stewart stewart
Ranch Hand

Joined: Dec 23, 2003
Posts: 71
i have an bmp ejb that returns a collection

when i call it in my jsp as:
Collection accounts=home.ejbFindAll();
the following error is generated:
<Call-by-reference is not enabled for the EJB 'bank'. The server will have better performance if
it is enabled. To enable call-by-reference, set the enable-call-by-reference element to True in the weblogic-ejb-jar.xml deployment descriptor for this EJB.

even if enable call-by-reference in the weblogic-ejb-jar.xml deployment descriptor then too its not working
the error:
cannot resolve symbol
probably occurred due to an error in /viewallaccounts.jsp line 20:
Collection accounts=home.ejbFindAll();
help pls

Aboo Bolaky

Joined: Apr 02, 2004
Posts: 19
try this

import java.util.Collection;

Collection accounts=new HashSet();

Regards,<br />Aboo
I agree. Here's the link:
subject: ejb not returning colection
jQuery in Action, 3rd edition