[jboss-user] [JNDI/Naming/Network] - distributed application

vphagura do-not-reply at jboss.com
Sat May 9 12:53:03 EDT 2009


I am deploying an EAR on JBoss 5 on one (Windows) machine 172.12.4.100 and a WAR on another machine(Linux) with Jboss 4.2.3. The EAR and the WAR names are:

- reservation.ear
- reservation.war

Also, I have a jndi.properties in the WEB-INF/classes and looks like:

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=192.168.5.105:1099

And, on the Jboss 4.2.3 ../server/default/conf the jndi.properties looks like this:

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost\:1099

Also, I have added the Jboss 5.0  machine IP in the hosts file of the Jboss 4.2.3.

I have started both JBoss with -b 0.0.0.0 and also tried with binding specific addresses.

In my WAR java files I try to access Remote EJB3 beans by the following names:

reservation//remote

But I get an Exception:

javax.naming.NameNotFoundException: reservation not bound
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
        at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
        at org.jnp.server.NamingServer.lookup(NamingServer.java:267)


Any ideas? PLease help!



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229860#4229860

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4229860



More information about the jboss-user mailing list