IBMStreams com.ibm.streamsx.messaging Toolkit > com.ibm.streamsx.messaging 5.4.3 > Connection specifications document > Access_specification element > Destination element
The <destination> element specifies the queue or topic that is used by the Messaging Toolkit operators. The element also specifies some parameters that control the behavior of the operator.
For WebSphere MQ, the <destination> element does not actually contain this information, instead it specifies the information indirectly by referencing an XMS or JMS administered object that is held in an external directory service. For Apache ActiveMQ, the <destination> element can directly refer to a queue or a topic.
The following example shows an access specification that contains a <destination> element for the WebSphere MQ messaging system:
<access_specifications> <access_specification name="Outtrading22"> <destination identifier="TestDestination2" delivery_mode="persistent" message_class="stream"/> <uses_connection connection="wbe2" /> <native_schema> <attribute name="cntr" type="Long"/> </native_schema> </access_specification> </access_specifications>
The following example shows an access specification that contains a <destination> element that directly refers to an ActiveMQ queue:
<access_specifications> <access_specification name="amqAccess"> <destination identifier="dynamicQueues/MapQueue" delivery_mode="persistent" message_class="stream" /> <uses_connection connection="amqConn"/> <native_schema> <attribute name="cntr" type="Long" /> </native_schema> </access_specification> </access_specifications>