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 ?!!

[711 byte] By [George_.Smitha] at [2007-11-27 11:32:48]
# 1

I solved the problem, Thanks anyway .

George_.Smitha at 2007-7-29 16:47:32 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...