• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
  • Frits Walraven
  • fred rosenberger
  • salvin francis


Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic