I have an entity bean which I have successfully test from a servlet. Now I
have created a session bean to interact with the entity bean However when I
do the exact same JNDI lookup that I perform in the servlet I get a
nameNotFound exception. below is the code performing the lookup I have it
placed in the create() method of the session bean. Is this code correct and
where is the correct (most logical) place to do a home interface lookup.
try
{
InitialContext ic = new javax.naming.InitialContext();
IpimstablesHome home =
(IpimstablesHome)javax.rmi.PortableRemoteObject.narrow(ic.lookup("ipimstable
s"),IpimstablesHome.class);
}
catch (Exception ex)
{
System.out.println("(Try #2) Could not instantiate IpimstablesHome
object, The following exception was thrown - "+ex+" - "+ex.getMessage());
}
===========================================================================
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".