Class ActivityIDSetter


  • public class ActivityIDSetter
    extends Object
    Set the Activity ID to the Transport Header and the Synapse Context.
    • Constructor Detail

      • ActivityIDSetter

        public ActivityIDSetter()
    • Method Detail

      • setActivityIdInTransportHeader

        public static void setActivityIdInTransportHeader​(org.apache.synapse.MessageContext messageContext)
                                                   throws org.apache.synapse.SynapseException
        Sets a unique Activity ID to the transport header and synapse context. This is useful when tracking the message when it passes through different systems. If either synapse context or transport header already had activity id set, that is reused. If both synapse context and transport header had activity id set, transport header activity id get precedence If non of either synapse context or transport header had activity id set, new unique id is generated
        Parameters:
        messageContext - message context of message
        Throws:
        org.apache.synapse.SynapseException