Question : lookup a Local entity bean...How?

I am migrating a J2EE app from WAS4 to WAS5.1 in the process we are trying to take advantage of the new Local EJBs, so we have changed a handful of our remote entity beans into Local entity beans.
We are having an error now when we try to lookup the bean’s home interface.
We are doing it the same way we were doing it when they were remote entity beans:
Hashtable parms = new Hashtable();
parms.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
InitialContext ctx = new InitialContext(parms);
webHome =(WebResLocalHome)ctx.lookup("ejb/gov/mdc/common/ejb/entityBeans/WebResLocalHome");

This isn’t working now. We are getting this error:

[12/10/04 15:31:05:188 EST] 3c924619 mdct          E gov.mdct  ********** NamingException while initializing FrontController:
[12/10/04 15:31:05:188 EST] 3c924619 mdct          E gov.mdct  javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: ejb/gov/mdc/common/ejb/entityBeans/WebResLocalHome: First component in name ejb/gov/mdc/common/ejb/entityBeans/WebResLocalHome not found.  Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

How do you lookup Local entity beans???

Thanks a lot for your time.

Answer : lookup a Local entity bean...How?

did u try the program which i gave you above.... from the output did u see what the JNDI name is for your WebResLocalHome is......
Random Solutions  
 
programming4us programming4us