August 17, 2023

tMongoDBConnection – Docs for ESB 5.x

tMongoDBConnection

tmongodbconnection_icon32_white.png

Warning

This component will be available in the Palette of
Talend Studio on the condition that you have subscribed to one of
the Talend
solutions with Big Data.

tMongoDBConnection properties

Component family

Big Data / MongoDB

 

Function

tMongoDBConnection opens a
connection to a database in order that a transaction may be
made.

Purpose

This component allows you to create a connection to a MongoDB
database and reuse that connection in other components.

Basic settings

DB Version

List of the database versions.

 

Use replica set address

Select this check box to show the Replica
address
table.

In the Replica address table, you
can define multiple MongoDB database servers for failover.

 

Server and Port

IP address and listening port of the database server.

Available when the Use replica set
address
check box is not selected.

 

Database

Name of the database.

 

Use SSL connection

Select this check box to enable the SSL encrypted connection.

Then you need to use the tSetKeystore component in the
same Job to specify the authentication information.

For further information about tSetKeystore, see tSetKeystore.

Note that the SSL connection is available only for the version 2.4 + of MongoDB.

 

Set read preference

Select this check box and from the Read preference
drop-down list that is displayed, select the member you want the Job to read from the
MongoDB replica set to be used.

If you leave this check box clear, the Job reads the default member of the replica
set.

For further information, see MongoDB’s documentation about Replication and its Read
preferences.

 

Required authentication

Select this check box to enable the database
authentication.

 

Username and Password

DB user authentication data.

To enter the password, click the […] button next to the
password field, and then in the pop-up dialog box enter the password between double quotes
and click OK to save the settings.

Available when the Required
authentication
check box is selected.

Advanced settings

tStatCatcher Statistics

Select this check box to collect the log data at a 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 generally used with other MongoDB components,
particularly tMongoClose.

Log4j

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 related scenario, see Scenario 1: Creating a collection and writing data to it.


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x