Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AQjmsSession  RSS feed

 
Raajesh Mohan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!