aspose file tools*
The moose likes Websphere and the fly likes Could not create JNDI API context: javax.naming.CommunicationException: Cannot connect to ORB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Could not create JNDI API context: javax.naming.CommunicationException: Cannot connect to ORB" Watch "Could not create JNDI API context: javax.naming.CommunicationException: Cannot connect to ORB" New topic
Author

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

Ashirbad Kumar
Greenhorn

Joined: Jun 19, 2012
Posts: 3
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
Bartender

Joined: Oct 14, 2005
Posts: 18563
    
    8

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

Joined: Jun 19, 2012
Posts: 3
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

Joined: Jun 19, 2012
Posts: 3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not create JNDI API context: javax.naming.CommunicationException: Cannot connect to ORB