• 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

Could not create JNDI API context: javax.naming.CommunicationException: Cannot connect to ORB

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting this error whenever i am trying to run the JMS program.

Please refer to the below program and help me out of it:


A quick help will be appreciated and will be thankful to it.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's lines 49 to 54 which are your problem, clearly, since that's where the error message comes from. I expect you have to provide some kind of configuration entry to tell the naming factory where the ORB is located.

Whether you have to do that in code or in some kind of Websphere configuration, I have no idea. Perhaps the documentation for your ORB would tell you that.
 
Ashirbad Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:It's lines 49 to 54 which are your problem, clearly, since that's where the error message comes from. I expect you have to provide some kind of configuration entry to tell the naming factory where the ORB is located.

Whether you have to do that in code or in some kind of Websphere configuration, I have no idea. Perhaps the documentation for your ORB would tell you that.




Hi Paul,

Thanks a lot for your help.

Please send me one simple JMS program as i am a learner now.

And I need to run the program in Eclipse.

So guide me for the same.

I will be grateful to you for your kind help.

Thanks and Regards,
Ashirbad
 
Ashirbad Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can some one explain me the actually explaination of " queueConnectionFactory = (QueueConnectionFactory)
jndiContext.lookup("QueueConnectionFactory");"
this statement in the above program.

Or if possible please advice some link where i get a proper explaination of this statement.

Help will be appreciated and will be grateful.

Thanks ,
Ashirbad
 
Hang a left on main. Then read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic