TCP Listener

TCP Listener

The TCP Listener is used to read from a TCP port.

This is a Message-driven listener. This means that a message arriving at the destination port will activate the listener. The listener’s output is a ConnectMessage.

In the table below, you will find an explanation of these properties. All attributes with a ‘*’ are mandatory.

Attribute

Description

Name*

By default, we fill this out with the technical ‘tag’, followed by a serial number. Changing the name is optional.

Enabled

Set this value to true, if you want this consumer to be enabled.
Consumer Autostart Consumer will be started at startup of the interface.

Secure TLS/SSL Communication

Here you can choose to enable TLS or SSL security. By default secure communication is turned off (‘false’).

SSL Context Support Bean

A bean reference to a custom SSL context support bean. This bean needs to be known within the corresponding interface in the interface overview. If this field is left empty, a default SSL context support bean is used.

Keystore

Name of the keystore file which is used for secure communication. If the keystore file is not on the classpath, the name should be preceded by “file:”. By default the truststore specified in myesb-connect.properties is used.

Keystore Password

Password of the keystore.

Truststore

Name of the truststore file which is used for secure communication. If the truststore file is not on the classpath, the name should be preceded by “file:”. By default the truststore configured in connectplaza-agent.properties is used.

Truststore Password

Password of the truststore.

Protocol

The secure protocol to be used. You can choose between TLS and SSL. By default this is set to TLS.

Port*

The TCP port number to listen to.

Serializer Bean Reference

A bean reference to a serializer bean to be used for the TCP consumer. This bean needs to be known within the corresponding interface in the interface overview.

Deserializer Bean Reference

A bean reference to a deserializer bean to be used for the TCP consumer. This bean needs to be known within the corresponding interface in the interface overview.

Reply Timeout

This time-out value, in ms, is the time in which a reply message is expected to be sent back to the caller. The default value is 10000 ms.

MessagePart Name

In this property you can define the name for the MessagePart in the Message, which will be used for the response. In this MessagePart, the value of the param-out parameter will be set before sending the message to the Services. The default value is msgprt0.

Description

Description of the specific consumer. This is for documentation purposes.

 

Advanced options

Atrribute Description
Serializer Bean Reference Reference to a serializer bean to be used for TCP consumer. This bean should be added in Constructor using the 'Beans' option in the menu.
The reference bean must implement the Serializer<byte[]> interface. The default serializer is the ByteArrayCrlfSerializer. Normally the serializer and deserializer are the same bean.
Deserializer Bean Reference Reference to a deserializer bean to be used for TCP consumer. This bean should be added in Constructor using the 'Beans' option in the menu.
The reference bean must implement the Deserializer<byte[]> interface. The default deserializer is the ByteArrayCrlfSerializer. Normally the serializer and deserializer are the same bean.