tMomRollback - 6.3

Talend Open Studio for Big Data Components Reference Guide

EnrichVersion
6.3
EnrichProdName
Talend Open Studio for Big Data
task
Data Governance
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

Function

tMomRollback rollbacks data from the MQ Server.

Purpose

Avoids involuntary commitment of part of a transaction.

tMomRollback properties

Component family

Internet

Basic settings

Component List

Select the component used in your Job.

 

Backout messages to backout queue (WebsphereMQ)

Select this check box to backout the messages to the backout queue defined in the Websphere MQ manager when the backout count reaches the configured threshold which is a property of the queue in the Websphere MQ server.

  • If a tMomConnection component is selected from Component List, the messages processed by all tMomInput components that reuses the connection created by the selected tMomConnection component will be backouted.

  • If a tMomInput component is selected from Component List and the Use existing connection check box in the Basic settings view of the tMomInput component is cleared, the messages processed by the selected tMomInput component will be backouted.

  • If a tMomInput component is selected from Component List and the Use existing connection check box in the Basic settings view of the tMomInput component is selected, the messages processed by all tMomInput components that reuses the same connection the selected tMomInput component reused will be backouted.

  • If a tMomOutput component is selected from Component List and the Use existing connection check box in the Basic settings view of the tMomOutput component is cleared, no messages will be backouted.

  • If a tMomOutput component is selected from Component List and the Use existing connection check box in the Basic settings view of the tMomOutput component is selected, the messages processed by all tMomInput components that reuses the same connection the selected tMomOutput component reused will be backouted.

Note that this check box works only when the Commit (delete message after read from the queue), Backout messages to input queue, Backout messages to backout queue (when backoutCount of message reach the threshold value), and Browse message check boxes of all tMomInput components in the same Job are cleared.

 

Close Connection

Clear this check box to continue to use the selected connection once the component has performed its task.

Advanced settings

tStatCatcher Statistics

Select this check box to collect log data at the component level.

Global Variables

ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable functions after the execution of the component.

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

For further information about variables, see Talend Studio User Guide.

Usage

This component is more commonly used with other tMom* components, especially with the tMomConnection and tMomCommit components.

Log4j

If you are using a subscription-based version of the Studio, the activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User Guide.

For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html.

Limitation

n/a

Related scenario

For a similar scenario, see Scenario: Rollback from inserting data in mother/daughter tables.