August 17, 2023

tSocketOutput – Docs for ESB 5.x

tSocketOutput

tSocketOutput_icon32_white.png

tSocketOutput properties

Component family

Internet

 

Function

tSocketOutput component writes
data to a listening port.

Purpose

tSocketOutput sends out the data
from the incoming flow to listening socket port.

Basic settings

Host name

Name or IP address of the Host server

 

Port

Listening port to open

 

Compress

Select this check box to zip the data if relevant.

 

Retry times

Number of retries before the Job fails.

 

Timeout

Number of seconds for the port to listen before closing.

 

Die on error

Clear this check box to skip the row on error and complete the
process for error-free rows.

 

Field separator

Character, string or regular expression to separate fields.

 

Row separator

String (ex: ”
“on Unix) to distinguish rows.

 

Escape Char

Character of the row to be escaped

 

Text enclosure

Character used to enclose text.

 

Schema and Edit
Schema

A schema is a row description, it defines the number of fields to be processed and
passed on to the next component. The schema is either Built-in or stored remotely in the
Repository.

Since version 5.6, both the Built-In mode and the Repository mode are
available in any of the Talend solutions.

Click Edit schema to make changes to the schema. If the
current schema is of the Repository type, three options are
available:

  • View schema: choose this option to view the
    schema only.

  • Change to built-in property: choose this option
    to change the schema to Built-in for local
    changes.

  • Update repository connection: choose this option to change
    the schema stored in the repository and decide whether to propagate the changes to
    all the Jobs upon completion. If you just want to propagate the changes to the
    current Job, you can select No upon completion and
    choose this schema metadata again in the [Repository
    Content]
    window.

 

 

Built-in: The schema will be
created and stored locally for this component only. Related topic:
see Talend Studio User Guide.

 

 

Repository: The schema already
exists and is stored in the Repository, hence can be reused in
various projects and job flowcharts. Related topic: see
Talend Studio User
Guide
.

 

Encoding

Select the encoding from the list or select Custom and define it
manually. This field is compulsory for DB data handling.

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.

NB_LINE: the number of rows processed. This is an After
variable and it returns an integer.

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 opens a point of access to a workstation or server.
This component starts a Job and only stops after the time goes out.

Limitation

Due to license incompatibility, one or more JARs required to use this component are not
provided. You can install the missing JARs for this particular component by clicking the
Install button on the Component tab view. You can also find out and add all missing JARs easily on
the Modules tab in the Integration perspective
of your studio. For details, see https://help.talend.com/display/KB/How+to+install+external+modules+in+the+Talend+products
or the section describing how to configure the Studio in the Talend Installation and Upgrade
Guide
.

Related Scenario

For use cases in relation with tSocketOutput, see
Scenario: Passing on data to the listening port


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