# cWireTap

Wiretaps messages to a user defined URI while they are sent to their original endpoint. cWireTap also allows you to populate a new message to this wiretap URI concurrently.

For more information, see the Apache camel documentation https://camel.apache.org/components/latest/.

## cWireTap Standard properties

These properties are used to configure cWireTap running in the Standard Job framework.

The Standard cWireTap component belongs to the Routing family.

## Basic settings

| Properties | Description |
| --- | --- |
| URI | The endpoint URI to send the wire tapped message. |
| Populate new exchange | Select this check box to populate a new message to the wiretap URI. |
| Populate Type | <ul> <li> <p>This option appears when the <span>Populate new									exchange</span> check box is selected. The <span>Populate Type</span> is either <span>Expression</span> or <span>Processor</span>. </p> </li> <li> <p> <span>Expression</span>: Using expression								allows you to set the message body of the new exchange.</p> <p> <span>Language</span>: Select the language of the                     expression you want to use to set the message body from <span>None</span>, <span>Bean</span>,                        <span>Constant</span>, <span>CorrelationID</span>, <span>EL</span>,                        <span>Groovy</span>, <span>Header</span>, <span>JoSQL</span>, <span>JSonPath</span>, <span>JXPath</span>, <span>MVEL</span>, <span>OGNL</span>, <span>PHP</span>,                        <span>Property</span>, <span>Python</span>, <span>Ruby</span>, <span>Simple</span>, <span>SpEL</span>, <span>SQL</span>, <span>XPath</span>, and <span>XQuery</span>.</p> <p>For more information about how to use the languages to create an expression, see         the site <a href="http://camel.apache.org/languages.html" target="_blank">http://camel.apache.org/languages.html</a>.</p> <p> <span>Expression TXT</span>: Enter the expression to set the								message body.</p> </li> <li> <span>Processor</span>: Using							processor gives you full power to specify how the exchange is populated							as you can set properties, headers and so on to the message with a piece							of Java code in the <span>Code</span> field.						</li> </ul> |
| Copy the original message | Select this check box to create a copy of the original exchange, which<br>will be the totally the same as the original one. If this check box is<br>not selected, only a new exchange with the same endpoint name will be<br>created. The message body and headers are null.<br><br>The exchange<br>pattern is InOnly for both<br>conditions. |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | cWireTap can be a middle<br>component in a Route. |
| Limitation | n/a |

**Related concepts**

* [Wiretapping a message in a Route](https://help.qlik.com/talend/en-US/mediation-components/8.0/mediation-wiretap/cwiretap-cfile-cjavadslprocessor-cmessagingendpoint-wiretapping-message-in-route)