2 Replies Latest reply on Apr 4, 2005 11:04 AM by Balamaci Serban

    Client call of a remote EJB

    Balamaci Serban Newbie

      I am kinda of a begginer on J2EE. It seems to me this would normaly not be a big problem since it's imposible for me to think that all clients need to be on the same machine as the server ap.
      Ok so we got the client code like this:

       Properties env = new Properties();
       env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
       env.setProperty(Context.PROVIDER_URL, "jnp://");
       env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
       Context ctx = new InitialContext(env);
       Object obj = ctx.lookup("FunctionarEJB");
       FunctionarHome home = (FunctionarHome) javax.rmi.PortableRemoteObject.narrow(obj,FunctionarHome.class);
       Functionar funct = home.create();

      and the FunctionarEJB is deployed, got the deployment descriptor like this:

      the server is started in the default mode on with the FunctionarEJB bean deployed.

      When i run the client on machine like this

      java -cp ./jnp-client.jar:./jboss-j2ee.jar:./jboss-common-client.jar:. -Djava.security.manager -Djava.security.policy="security.policy" com.balamaci.ejb.client

      all it does is spill out this
      javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.proxy.IClientContainer]

      Now can someone for the love of god tell me how to get over this? On google only 4 refs about org.jboss.proxy.IClientContainer

      Please Help....