# tMessagingConnection

Opens a connection to an MQ server for communication.

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).

Information noteNote: This component is available only when you have installed the 8.0.1-R2022-11 Talend Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator.

## tMessagingConnection Standard properties

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

The Standard tMessagingConnection component belongs to the Messaging family.

## Basic settings

| Properties | Description |
| --- | --- |
| Property Type | Either Built-In or<br>Repository.<br><br><ul> <li> <span>Built-In</span>: No                     property data stored centrally.</li> <li> <span>Repository</span>: Select                        the repository file in which the properties are stored. The database                        connection related fields that follow are completed automatically using                        the data retrieved.</li> </ul> |
| JMS Provider | Select the type of the MQ server(s) to be connected from the<br>drop-down list: ActiveMQ (JMS v1),<br>ActiveMQ Artemis (JMS v2), or WebSphere MQ. |
| Server URL | Enter the URL of the MQ server.<br><br>MQ server URL needs to be in specific format. That is,<br>tcp://localhost:61616 (for<br>ActiveMQ and ActiveMQ Artemis MQ<br>servers) or localhost(1414) (for WebSphere MQ<br>servers), as prompted in the field. |
| Use Specified User Identity | If you have to log in, select the check box and type in your username and<br>password in the corresponding fields.<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. |
| Durable subscription | Select this check box to enable the durable<br>subscription.<br><br><ul> <li> <span>Client ID</span>: enter the client ID for the durable subscription.</li> <li> <span>Subscriber name</span>: enter the subscriber name for the durable                        subscription.</li> </ul> |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this check box to collect log data at the component<br>level. |
| Acknowledge mode | Select the acknowledge mode from the drop-down list: Auto acknowledge,<br>Client acknowledge, DUPS ok<br>acknowledge, Session/Transaction, or<br>Do not acknowledge. |
| Advanced context properties | Set other properties as needed. To set a property in this table, click the plus<br>button underneath the table to add a line, enter the property name in the<br>Key column and enter the value in the<br>Value column. This table supports global variables<br>and context variables. Refer to [Configure JMS producers](https://doc.akka.io/docs/alpakka/current/jms/producer.html) for information about properties of ActiveMQ and ActiveMQ Artemis MQ servers; refer<br>to [WebSphere MQ connector properties](https://www.ibm.com/docs/en/iis/11.5?topic=connector-websphere-mq-properties) for information about properties of WebSphere MQ servers.<br><br>Information noteNote: If you are using a WebSphere MQ JMS provider, you need to set the mandatory properties (that<br>is, CHANNEL and QUEUE\_MANAGER) in this<br>table. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | 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><br>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>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 commonly used with other tMessaging\*<br>components, especially with the tMessagingCommit and tMessagingRollback components. |
| Limitation | This component supports ActiveMQ (JMS v1), ActiveMQ Artemis (JMS v2), and WebSphere MQ servers. A single Job can include multiple connections to different broker types simultaneously. |