0 Replies Latest reply on Feb 10, 2004 7:34 AM by Nagurva Reddy

    Communicating to EJB through IIOP protocol in Java Client

    Nagurva Reddy Newbie

      hi,

      i deployed a HelloBean ejb on Jboss 3.2.3 with jboss.xml modified to use invoker IIOP and stateless-rmi-invoker. But when i tried to invoke a client using the following code, i get an exception saying

      Exception Found:javax.naming.NameNotFoundException: iiop not bound

      can any one suggest where did i go wrong ??

      My Code Snippet>>>>>

      prop.put"java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
      prop.put"java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
      prop.put("java.naming.provider.url","jnp://localhost:1099/iiop");

      Context ctx=new InitialContext(prop);

      Object obj = ctx.lookup("HelloHome");

      HelloHome home=(HelloHome)javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class);

      My Code Snippet>>>>>


      thx for ur help