Hi
I am trying to run the MQSeries JMS application on WebSphere 4.0. I have created the administered Topic Connection Factory TCFSERVER with CTX_FACTORY = "com.ibm.ejs.ns.jndi.CNInitialContextFactory" and INIT_URL = "iiop://10.30.0.128:900/jms". When I run it as simple java application (with main method) , it runs fine. But when I try to run it as a part of servlet, I get exception while trying to lookup the TCFSERVER (the code is TopicConnectionFactory tcf = (TopicConnectionFactory)ctx.lookup( "TCFSERVER" ); )
The exception is:
A Reference object looked up from the context "domainRoots/UnspecifiedDomainName/legacyRoot/jms" with the name "TCFSERVER" was sent to the JNDI Naming Manager and was returned unprocessed.
java.lang.ClassCastException: javax.naming.Reference
That is it returns the object of type javax.naming.Reference when ideally it should have returned the object of type MQTopicConnectionFactory.
What may be the reason for such error?
Thanks and Regards
Vallabh
I am trying to run the MQSeries JMS application on WebSphere 4.0. I have created the administered Topic Connection Factory TCFSERVER with CTX_FACTORY = "com.ibm.ejs.ns.jndi.CNInitialContextFactory" and INIT_URL = "iiop://10.30.0.128:900/jms". When I run it as simple java application (with main method) , it runs fine. But when I try to run it as a part of servlet, I get exception while trying to lookup the TCFSERVER (the code is TopicConnectionFactory tcf = (TopicConnectionFactory)ctx.lookup( "TCFSERVER" ); )
The exception is:
A Reference object looked up from the context "domainRoots/UnspecifiedDomainName/legacyRoot/jms" with the name "TCFSERVER" was sent to the JNDI Naming Manager and was returned unprocessed.
java.lang.ClassCastException: javax.naming.Reference
That is it returns the object of type javax.naming.Reference when ideally it should have returned the object of type MQTopicConnectionFactory.
What may be the reason for such error?
Thanks and Regards
Vallabh