File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes JMS and JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS and JNDI" Watch "JMS and JNDI" New topic


Richard Marshall

Joined: Sep 14, 2001
Posts: 3
(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...
I agree. Here's the link:
subject: JMS and JNDI