Raajesh Mohan

Greenhorn
+ Follow
since Dec 08, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Raajesh Mohan

I am trying to develop a Topic Browser and am getting the following exception while casting TopicSession to AQjmsSession.

TopicConnectionFactory conFactory = (TopicConnectionFactory) ctx.lookup(tconStr);
Topic topic = (Topic) ctx.lookup(topicStr);
TopicConnection topicConnection = conFactory.createTopicConnection();
TopicSession topicSession = topicConnection.createTopicSession(true, Session.AUTO_ACKNOWLEDGE);
TopicBrowser topicBrowser = ((AQjmsSession) topicSession).createBrowser(topic,cons_name);

WebApp E [Servlet Error]-[MQTopicBrowserServlet]: java.lang.ClassCastException: com.ibm.ejs.jms.JMSTopicSessionHandle incompatible with oracle.jms.AQjmsSession

The error is occuring at the last line where i am trying to cast TopicSession to AQjmsSession.

I have the following jars in my classpath

aqapi13.jar , jmscommon.jar, jndi.jar and classes12.jar

Please help.

Thanks

Raj