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.
this is on JRUN 3.1
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());
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists