• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb not returning colection

 
alec stewart stewart
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this

import java.util.Collection;

Collection accounts=new HashSet();
accounts=home.findall();
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic