35.3. Duplicate Detection and Bridges
Core bridges can be configured to automatically add a unique duplicate id value (if there is not already one in the message) before forwarding the message to its target. This ensures that if the target server crashes or the connection is interrupted and the bridge resends the message, then if it has already been received by the target server, it will be ignored.
To configure a core bridge to add the duplicate id header, set the
use-duplicate-detection
to true
when configuring a bridge in <JBOSS_HOME>/jboss-as/server/<PROFILE>/deploy/hornetq/hornetq-configuration.xml
.
The default value for this parameter is
true
.
For more information on core bridges and how to configure them, refer to Chapter 34, Core Bridges.