Hi
(Apologies if this is similar to previous topics, but I have not been able to find any answers to my problem)
I'm trying to run a simple
test that consists of a 'sender' program and a 'receiver' program. I am using JNDI to locate the JMS queue connection factory and all works fine when I run the
J2EE server, the sender and the receiver on the same machine. However when I try to run the receiver on a seperate machine I get the following error:
SEVERE JMSInitialContext: Unable to get internal JNDI context because: javax.naming.CommunicationException: Cannot connect to ORB [Root exception is org.omg.CORBA.COMM_FAILURE: minor code: 1398079689 completed: No]
I have the J2EE server running on an NT4 machine (bob) with the naming service started on port 1050. I have an NT4 client (with J2EE installed) attempting to run the receiver using the following statement:
java -Dorg.omg.CORBA.ORBInitialHost=11.22.33.44 JNDITest.SimpleQueueReceiver myqueue
where 11.22.33.44 is the IP for bob.
The code I have used to set up JNDI context is as follows:
Properties prop = new Properties();
prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
prop.setProperty(Context.PROVIDER_URL, "iiop://11.22.33.44:1050");
Any help would be appreciated...