hi It seems that the environment variable java:comp/env/ejb/Availability is not set properly in the ejb-xml file check this ramesh
-----Original Message----- From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of Oikonomopoulos Spyros Sent: Thursday, December 06, 2001 6:01 PM To: [EMAIL PROTECTED] Subject: Lookup of session bean fails in Entity Bean 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". =========================================================================== 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".
