Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ashirbad Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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.
 
Paul Clapham
Sheriff
Pie
Posts: 20955
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic