Wire Tap component
The Wire Tap component allows you to take a sample of an ongoing message in your flow to perform an additional action while the message continues through the main flow. The tapped message is copied, and any resulting routing runs in a separate thread if the main flow is asynchronous. However, if the flow is synchronous, it will not run in a separate thread.
A Wire Tap component is particularly useful for debugging and testing flows. However, excessive usage can cause a heavy load. It is best suited for simple and lightweight fire-and-forget operations.
Using Wire Tap
The Wire Tap component has two forwarding endpoints:
- On the right side of the component to route the original message.
- On the bottom of the component to start a new thread and route the copied message.
Below is an example use case for a Wire Tap:

Messages are received through an inbound HTTP endpoint, processed with XSLT, and then sent to an HTTP endpoint. A Wire Tap component is used in this example to store the original incoming messages on an FTP server while the main flow continues with processing and forwarding the message.
Be aware that the Wire Tap component only waits for pending messages to a certain extent. If messages are enqueued faster than they are processed by the bottom route of the Wire Tap, they will be discarded once a threshold is reached.