2.7. Stomp Composite Destinations
Abstract
You can specify composite destinations between Stomp and A-MQ.
Specify Composite Destinatons for Stomp in A-MQ
Stomp can be used to subscribe to A-MQ topics or to pull from queues. Comma separated lists of multiple topics or queues can be used to ensure that all messages are receieved. These are composite destination lists.
Composite destination lists can be made up of either topics or queues. They cannot be mixed in the same list. If both topics and queues are required, then two lists can be used.
The format of a composite destination list is as follows:
(dest-type/dest-name01,dest-type/dest-name02,dest-type/dest-name79)
Note
The dest-type must be specified for each entry in the composite definition list, even though all the entries are for the same destination type.
For example, a composite destination list of topics can be defined as:
(topic/test01,topic/test02,topic/test15A)
A composite destination list of queues can be defined as:
(queue/queuename01,queue/queuename02,queue/queuename31C)
Note
Be aware that if a message is published to more than one of the elements in your composite definition list, you will only recieve one copy of it. You will not receive duplicate messages.