Hi to all,
I have an entity bean trying to acquire a reference (JBOSS 2.4 - J2EE 1.2) to a
session bean in its setEntityContext method:
_availabilityHome = (AvailabilityHome)
PortableRemoteObject.narrow(context.lookup("java:comp/env/ejb/Availability"),
AvailabilityHome.class); (*** statement 1 *****)
Unfortunately I get : "javax.naming.NameNotFoundException: Availability not bound"
Please not that If I create a client with the following statement:
AvailabilityHome availabilityHome = (AvailabilityHome)
PortableRemoteObject.narrow(ref, AvailabilityHome.class);
it works fine. In addition, in my entity bean, I succesfuly create another entity bean
just before statement 1 with:
serviceTypeHome = (ServiceTypeHome)
PortableRemoteObject.narrow(context.lookup("java:comp/env/ejb/ServiceType"),
ServiceTypeHome.class);
Do I have to use a different path in the naming?
Thanks in advance
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".