Forum Discussion

akashyap's avatar
akashyap
New Contributor
6 years ago

JMS Consumer - Processing mode information

Hi,

As per Snaplogic documentation for JMS Consumer there is a reference about STOP in the Processing Mode option but there no explanation how can we set this STOP option.

Any information will really be very helpful.

Thanks in advance.

1 Reply

  • dmiller's avatar
    dmiller
    Former Employee

    From Development:

    When the consumer pipeline is running, and it might run for a longer time, and we wish to gracefully stop the Snap without manually terminating the pipeline then this “Control Destination” property helps. Just provide some queue/topic name in this property.

    When you want to terminate the Consumer Snap, simply write a “STOP” text message to the control destination using a JMS Producer Snap.

    The moment control destination sees the STOP message, it signals the Consumer Snap to gracefully shutdown.