Hello,
i'm trying to send a message for a queue on a remote machine, but i'm always getting the error:
javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
I try to put the remote machine name in the java code:
p.put(Context.PROVIDER_URL, "jnp://remotemachine:1099");
I try to put in jndi.properties:
java.naming.provider.url=jnp://remotemachine:1099
I try to put in the java parameter of the run.sh:
java -Djava.rmi.server.hostname=remotemachine
I can do telnet 1099 remotemachine.
Thanks for any help
david
There are downloadable examples that should work. There are three key properties to set in the initial context.