Hi, Iam using the following code to access the ejb from my jsp.
And iam getting an error. My environment is
wsad5.1 +
jsp +
j2ee 1.3.
My jsp code is:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:9081");
Context context = new InitialContext(env);
home = context.lookup("ejb/Hello");
where ejb/Hello is the ejb name in ejb-jar.xml file
[Servlet Error]-[ejb/RatingEJB]: javax.naming.NameNotFoundException: ejb/RatingEJB. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:964)
thanks.
Daniel