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://192.168.0.5:1099");
env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
try
{
Context ctx = new InitialContext(env);
Object obj = ctx.lookup("FunctionarEJB");
FunctionarHome home = (FunctionarHome) javax.rmi.PortableRemoteObject.narrow(obj,FunctionarHome.class);
Functionar funct = home.create();
funct.sayHello();
}
and the FunctionarEJB is deployed, got the deployment descriptor like this:
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>FunctionarEJB</ejb-name>
<home>com.balamaci.FunctionarHome</home>
<remote>com.balamaci.Functionar</remote>
<local-home>com.balamaci.LocalFunctionarHome</local-home>
<local>com.balamaci.LocalFunctionar</local>
<ejb-class>com.balamaci.FunctionarBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Bean</transaction-type>
</session>
</ejb-jar>
the server is started in the default mode on 192.168.0.5 with the FunctionarEJB bean deployed.
When i run the client on 192.168.0.1 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....