• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS and JNDI

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
I don't like that guy. The tiny ad agrees with me.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic