Setting up multiple connections in Talend Studio using a script - Cloud - 7.3

Talend Studio User Guide

Version
Cloud
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development
Last publication date
2024-02-13
Available in...

Big Data

Big Data Platform

Data Fabric

Data Integration

Data Management Platform

Data Services Platform

ESB

MDM Platform

Real-Time Big Data Platform

Talend Studio allows you to create multiple connections in one go using a script.

The following example demonstrates how to create a local connection and a Talend Administration Center connection in one go using a script.

Procedure

  1. Create a script file to define the connection details in JSON format.

    In this example, name the script myConnections.json and put it in the Talend Studio installation directory.

    [
        {
            "name": "localConnection",
            "description": "My local connection",
            "local": true,
            "user": "doc@company.com",
            "workSpace": "D:\\Talend\\workspacelocal"
        },
    	{
            "name": "remoteConnection",
            "description": "My remote connection",
            "local": false,
            "user": "dev@company.com",
            "password": "mypassword",
            "workSpace": "D:\\Talend\\workspaceremote",
            "url": "http://192.128.8.88:8081/org.talend.administrator"
        }
    ]
    Warning: Make sure that the path of your workspace directory contains no space or special characters, which may cause Talend Studio to fail to work because of JVM compatibility issues.
  2. In the Talend Studio installation directory, run the following command:
    Talend-Studio-win-x86_64.exe -nosplash -application org.talend.commandline.GenerateConnection -consoleLog -data commandline-workspace -f myConnections.json
    Note: This example assumes you are using Talend Studio on Microsoft Windows. If you are working on another Operating System, use the executable file of Talend Studio corresponding to your Operating System.
  3. Launch Talend Studio.
  4. In the Talend Studio login window, click Manage Connections to open the Connections window and check your connections.
    The connections defined in the script file are created and shown in the Connections window.