Connect to a remote server JMS resources
Hi all,
From a WebSphere server J2EE application, I am trying to connect to a remote WebSphere server JMS resources, in order to send a message to the remote server.
I have tried:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:2811");
InitialContext initialContext = new InitialContext(env);
queueConnectionFactory = (QueueConnectionFactory) initialContext.lookup("jms/QueueRemote");
but it fails with org.omg.CosNaming.NamingContextPackage.NotFound exception.
The JNDI name is correct.
Please, advice me what to do? Or do you know some other approach?

