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

ClassCastException: weblogic.deployment.jms.PooledConnection_com_tibco_tibjms_TibjmsXATopicConnectio  RSS feed

 
kg na
Greenhorn
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();
((weblogic.jms.extensions.WLConnection)topicConnection).setReconnectPolicy("all");

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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!