Error creating destination: org.apache.activemq.command.ActiveMQQueue cannot be cast to javax.jms.Topic
book
Article ID: KB0075196
calendar_today
Updated On:
Description
When attempting to configure the JMS Adapter for queues, the following error message is seen on application start-up:
Error creating destination: org.apache.activemq.command.ActiveMQQueue cannot be cast to javax.jms.Topic
I've set
use-topics="false" in my JMS configuration file, but the error persists.
Resolution
JMS supports two communications styles: topics and queues. Queues are point-to-point connections between a single sender and a single receiver. Topics are a publish-subscribe mechanism, where there is one publisher and zero or more subscribers, each of which gets a copy of any published message.
When using queues instead of topics...
For StreamBase 7: Remove the
subscriber-name attribute from the
<jms-server> element in your JMS configuration file. This will ensure that any queues defined in the
<destinations> element will
not be treated as topics, thus eliminating the above error.
For TIBCO Streaming 10.x and later: In the JMS Configuration Editor in SB Studio, make sure the Subscriber Name property is not set
Issue/Introduction
Error creating destination: org.apache.activemq.command.ActiveMQQueue cannot be cast to javax.jms.Topic
Feedback
thumb_up
Yes
thumb_down
No