0 Replies Latest reply on Jan 7, 2006 10:28 AM by mittal.neeraj

    Session Bean deployed with iiop invoker

    mittal.neeraj

      I have deployed a session bean using iiop invoker


      <ejb-name>AOServiceInterface</ejb-name>
      <jndi-name>ejb/AOServiceInterface</jndi-name>
      <configuration-name>Standard Stateless SessionBean</configuration-name>
      <invoker-bindings>

      <invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>

      </invoker-bindings>



      On the client side I am running this code (using JNDI lookup)

       Properties serverProperties = (Properties) prop.clone();
       String serverPort = AOConfigUtils.readProperties(prop,
       applicationName + SERVER_PORT);
       serverProperties.put(Context.PROVIDER_URL, server + ":"
       + serverPort);
       serverProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
       serverProperties.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
      
       InitialContext ic = new InitialContext(serverProperties);
       Object obj = ic.lookup("iiop/ejb/AOServiceInterface");
       Object pobj = PortableRemoteObject.narrow(obj, AOServiceInterfaceHome.class);
       AOServiceInterfaceHome serviceHome = (AOServiceInterfaceHome)pobj;
       AOServiceInterface service = serviceHome.create();
      


      narrow call is returning null, reason

      java.lang.ClassNotFoundException: org.omg.stub.com.neeraj.service._AOServiceInterfaceHome_Stub

      Please tell me where I am wrong?