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....
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872488#3872488
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872488
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user