Discussions

EJB design: How to connect any webserver with weblogic server

  1. How to connect any webserver with weblogic server (2 messages)

    Hi,
       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://192.100.100.189: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.

    surendra
      
  2. u should write the correct home name as in the properties file.
  3. Hey, Do you mean t3://192.000:7001 ?
    NOT HTTP.