Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassCastException: weblogic.deployment.jms.PooledConnection_com_tibco_tibjms_TibjmsXATopicConnectio

kg na
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having an issue with a JMS re-connect strategy on weblogic 12. I'm not sure if I am doing it correctly (Most likely I am not). Anyways, I am using WebLogic, and this is a consumer client. Here's how I gain a connection, and try to add the automatic re-connect.

TopicConnectionFactory topicConnectionFactory = (TopicConnectionFactory) context.lookup(TOPIC_JMS_FACTORY);
topic = (Topic) context.lookup(TOPIC);
topicConnection = topicConnectionFactory.createTopicConnection();

Ive seen this done in many examples but Im getting a:
ClassCastException: weblogic.deployment.jms.PooledConnection_com_tibco_tibjms_TibjmsXATopicConnection cannot be cast to weblogic.jms.extensions.WLConnection/

Please assist.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic