- Posted by: Surendar Rao
- Posted on: November 04 2000 01:48 EST
I registerd my servlet in jsdk2.1 through this I want access EJB bean in weblogic server.
In my servlet I written code as below
1)Context ctx = getInitialContext ("http://188.8.131.52:7001",username,password);
2)Object ref = ctx.lookup("empHome");
3)EmpHome home = (EmpHome)PortableRemoteObject.narrow(ref,EmpHome.class);
upto line 2 it is ok.
after that it is giving error.i.e home not found.
please give reply.
u should write the correct home name as in the properties file.
Hey, Do you mean t3://192.000:7001 ?