Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS and JNDI  RSS feed

Richard Marshall
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(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= JNDITest.SimpleQueueReceiver myqueue
where 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://");
Any help would be appreciated...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!