calling ejb from another ejb
Hi
I have an ejb project with 2 stateless session beans :
1) ValidateBean
2) ValidateFacadeBean.
I created a reference for the first bean (ValidateBean) so i can access it from the second bean (ValidateFacadeBean). the name of the reference is : "ejb/Validation"
within the ValidateFacadeBean, i am trying to call the "ValidateBean" like that :
InitialContext ctx = new InitialContext();
ValidationLocalHome vlh = (ValidationLocalHome)ctx.lookup("java:comp/env/ejb/Validation");
ValidationLocal vl = vlh.create();
But i'm getting an exception :
javax.naming.NameNotFoundException:Name comp/env/ejb not found
What am i doing wrong ?!!

