Glenn, I presume you are trying to look up the entity bean from a session bean in the same process (JVM).
In this case, you might want to check up the deployment descriptor part of this session bean to check if there is a local ejb reference to the entity bean. Usually the name you would give to the local ejb reference would be "ejb/HomeName" in which case, you can look up the local entity bean from the session bean via a "java:comp/env/ejb/HomeName". Check your vendor's documentation to see if the DD tool allows to do this. Else you might have to add this manually. "<ejb-local-ref> </ejb-local-ref>" -krish > -----Original Message----- > From: A mailing list for Enterprise JavaBeans development > [mailto:[EMAIL PROTECTED]]On Behalf Of glenn dickson > Sent: Thursday, March 08, 2001 4:18 PM > To: [EMAIL PROTECTED] > Subject: Re: Using Local Entity Beans Instead of Remote Entity Beans > > > Using this code : > private String animalTypeEJBName = "java:comp/env/ejb/AnimalType"; /* > Changed according to your advice */ > ... > ... > ... > > java.lang.Object animalTypeRef = initial.lookup(animalTypeEJBName); /* > Failing here : NameNotFoundException */ > AnimalTypeHome animalTypeHome = (AnimalTypeHome) > PortableRemoteObject.narrow(animalTypeRef, animalTypeClass); > > > TIA > Glenn =========================================================================== 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".
