Setting up multiple connections in Talend Studio using a script

Talend MDM Platform Installation Guide for Mac

EnrichVersion
6.5
EnrichProdName
Talend MDM Platform
task
Installation and Upgrade
EnrichPlatform
Talend Data Stewardship
Talend Activity Monitoring Console
Talend Installer
Talend JobServer
Talend MDM Web UI
Talend DQ Portal
Talend Identity and Access Management
Talend Runtime
Talend Artifact Repository
Talend Data Preparation
Talend MDM Server
Talend Administration Center
Talend SAP RFC Server
Talend Repository Manager
Talend Studio
Talend ESB
Talend Log Server
Talend CommandLine

Talend Studio allows you to create multiple connections in one go using a connection creation 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 put it in the Talend Studio installation directory.

    [
        {
            "name": "localConnection",
            "description": "My local connection",
            "local": true,
            "user": "user@talend.com",
            "workSpace": "D:\\Talend\\workspace"
        },
    	{
            "name": "remoteConnection",
            "description": "My TAC connection",
            "local": false,
            "user": "studiouser@company.com",
            "password": "mypassword",
            "workSpace": "D:\\Talend\\remoteworkspace",
            "url": "http://192.128.8.88:8081/org.talend.administrator"
        }
    ]
  2. In the Talend Studio installation directory, run the following command:
    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.

    Talend-Studio-win-x86_64.exe -nosplash -application org.talend.commandline.GenerateConnection -consoleLog -data commandline-workspace -f myConnections.json
  3. Launch Talend Studio.
  4. In the Talend Studio login window, click the Manage Connections button to open the Connections window and check your connections.

Results

The connections defined in the script file are connected and shown in the Connections window.