20.7.2. Non-exclusive Divert
Non-exclusive diverts forward a copy of the original message to the new address. The original message continues to arrive at the old address. You can configure non-exclusive diverts by setting
exclusive
property as false in standalone.xml
and domain.xml
server configuration files.
The following example shows a non-exclusive divert:
<divert name="order-divert"> <address>jms.queue.orders</address> <forwarding-address>jms.topic.spyTopic</forwarding-address> <exclusive>false</exclusive> </divert>The above example makes a copy of every message sent to
jms.queue.orders
address and sends it to jms.topic.spyTopic
address.