• No replies
45 Posts

Pinned topic Looking up websphere queue from JNDI

‏2013-02-01T18:17:26Z |
I need to look up a websphere 7 queue from JNDI (Configured SIB). First I wrote a client program which access remote websphere server. I added,, and jar files.

Code as follows.

Hashtable<String, Object> env = new Hashtable<String, Object>();
env.put(Context.PROVIDER_URL, "iiop://localhost:2809");

This does not work well as I am accessing it as a remote client. Hence I added this,


This works fine for now. Then I removed the above line and move the target JDK to IBM JDK. In that case it works without any issue as well.

Actual issue faced when I need to access the above queue in a server program. This runs on a separate JVM. When I try to access the remote JNDI queue it gives me a class cast exception. I believe its because it load the default sun ORB implementation instead of IBM. I added jar as well still no luck. It loads the Sun ORB. Hence it gives the class cast exception.

Like above I don't have the facility to load the org.omg.CORBA.ORB. Is there any way I can run this? Am I missing something? Any feedback from Websphere 8.5 is also welcome.

Note: This is not Websphere MQ. I am referring to Websphere application server queue.