# tRabbitMQOutput

Receives data from the preceding component as messages and adds the messages to queues in the specified way.

Information noteNote:

This component is not shipped with your Talend Studio by default. You need to install it using the Feature Manager. For more information, see [Installing features using the Feature Manager](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/install-features-to-talend-studio).

## tRabbitMQOutput Standard properties

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

The Standard tRabbitMQOutput component belongs to the Internet family.

The component in this framework is available in all subscription-based Talend products.

## Basic settings

| Properties | Description |
| --- | --- |
| Property<br>Type | Either Built-In<br>or Repository.<br><br><br>Built-In: No<br>property data stored centrally.<br><br><br>Repository:<br>Select the repository file in which the properties are stored. The<br>database connection related fields that follow are completed<br>automatically using the data retrieved. |
| Use an existing connection | Select this check box and in the Component List click the relevant<br>connection component to reuse the connection details you already<br>defined. |
| Schema and Edit Schema | A schema is a row description. It defines the number of fields<br>(columns) to be processed and passed on to the next component. When you create a Spark<br>Job, avoid the reserved word line when naming the<br>fields.<br><br>Click Edit<br>schema to make changes to the schema. If the current schema is of the Repository type, three options are available:<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion.</p> <p>If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul><br><br>This component can have only one column with the name of<br>message and the type of<br>String. You need to add the column manually in the<br>schema. |
| Host name | Enter the host name, for example, localhost. |
| Port | Enter the port number. The default is 5672. |
| Username and<br>Password | Enter the username and the password for accessing the message queue.<br><br>To enter the password, click the [...] button<br>next to the Password field to bring out the Enter a new<br>password dialog box, enter the password in the text field, and click<br>OK. Note that you can enter the password either in a JSON string<br>in the pure password mode or as a Java expression in the Java<br>mode. You can toggle between the two modes by clicking switch to<br>Java mode or switch to pure password mode on the top<br>of the text field.<br><br>Information noteNote:<br><br><ul> <li>The two password modes are available only when you have installed the                  8.0.1-R2022-05 <span>Talend Studio</span>                  monthly update or a later one delivered by <span>Talend</span>. For more information, check with your administrator.</li> <li>If the 8.0.1-R2022-05 <span>Talend Studio</span>                  monthly update or a later one delivered by <span>Talend</span>                  is not installed, you can enter passwords in the <span>Java mode</span>                  only. </li> </ul> |
| Use TLS | Select this option to use TLS for the connection. |
| Exchange type | Select the exchange type from the<br>drop-down list. Five options are provided: Default, Direct, Topic,<br>Fanout, and Headers. See *Exchanges and Exchange Types* section of [AMQP 0-9-1 Model Explained](https://www.rabbitmq.com/tutorials/amqp-concepts.html)<br>for related information. |
| Exchange name | Enter the exchange name in double<br>quotation marks. |
| Routing key | Enter the routing key in double quotation marks. |
| Header<br>properties | Add and customize message header properties.<br><br>To add a message header property, add a row in this<br>field by clicking the plus button under the field and set the property<br>values (that is, header key,<br>header value, and header type) in the corresponding columns<br>of the new row. |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this check box to gather the Job processing metadata at the Job level as well as at each component level. |
| Use virtual host | Select this option to use a virtual host for publishing messages. Specify the<br>virtual host to be used by entering the virtual host name in the<br>Virtual host name field.<br><br>Information noteNote: This option is available only when you have installed the 8.0.1-R2023-01<br>Talend Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator. |
| Durable | Select this option to declare the durable property for the queues. See *Queues* section of [AMQP 0-9-1 Model Explained](https://www.rabbitmq.com/tutorials/amqp-concepts.html) for related information. |
| Auto Delete | Select this option to declare the Auto-delete property for the queues. See *Queues* section of [AMQP 0-9-1 Model Explained](https://www.rabbitmq.com/tutorials/amqp-concepts.html) for related information. |
| Use alternate exchange | Select this option to enable alternate exchange. In this case, you need to enter the alternate exchange name in the Alternate exchange name field.<br><br>This option is available if you select Direct,<br>Topic, or Headers from the<br>Exchange type drop-down list in the Basic<br>settings view. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | NB\_LINE: the number<br>of rows read by an input component or transferred to an output component. This is an<br>After variable and it returns an integer.<br><br><br>ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is used as an output component and it always needs an incoming link. |
| Limitation | n/a |