This content has been marked as final.
Show 3 replies
-
1. Re: A simple CMP EJB, can not found EJB by lookup method, wh
adrian.brock Dec 14, 2002 1:53 PM (in response to xieby2001)java:comp/env is for use inside individual beans
and must be configured using <ejb-ref>
You cannot use it from a client,
unless it is an "application client" which jboss
doesn't support. (optional part of the j2ee spec)
Regards,
Adrian -
2. Re: A simple CMP EJB, can not found EJB by lookup method, wh
xieby2001 Dec 14, 2002 8:00 PM (in response to xieby2001)I have ejb-ref in my code like this:
@ejb:ejb-ref
view-type="local"
ejb-name="student"
my source code: -
3. Re: A simple CMP EJB, can not found EJB by lookup method, wh
xieby2001 Dec 14, 2002 10:43 PM (in response to xieby2001)I know the problem, my jndi-name is not right, it should like this:
private final static String JNDI_NAME_STUDENT = "ejb/school/studentLocal";
private final static String JNDI_NAME_CONTACT = "ejb/school/contactLocal";
private final static String JNDI_NAME_COURSE = "ejb/school/courseLocal";
private final static String JNDI_NAME_SPECIALTY = "ejb/school/specialtyLocal";
Now, it can work fine.