JMS JNDI lookup ClassCastException with WSAD 5
843830Nov 21 2002 — edited Nov 21 2002Hi everyone,
I am using WSAD version 5 (early access) to write two applications: one that sends JMS messages and the other one to read those JMS messages.
I have already created the Queue Connection Factory (and a Queue) with the Administrative Client and started the Server. With WSAD JNDI explorer, I can find those objects. When I do a JNDI lookup for QueueConnectionFactory with the following instruction:
aQConnFactory = (QueueConnectionFactory) ic.lookup("jms/QCF");
I always get the following exception message:
java.lang.ClassCastException: javax.naming.Reference
I noticed that the object returned from the lookup is:
java.naming.Reference (instead of a QueueConnectionFactory)
Am I missing something? Are there any Jar files that I need to add to the class path?
Thanks for your help.