Configuring the TCPIPClientReceive node
When you add the TCPIPClientReceive node to a message flow, you can configure it.
About this task
Procedure
- Optional: On the Description tab,
enter a Short description,
a Long description, or both.
You can also rename the node on this tab.
- On the Basic tab, set the properties
that determine how the TCP/IP connection is controlled.
- Use the Connection
details property to specify either the host name and port
number to be used, or the name of a configurable service. This property
is mandatory. The following formats are supported:
- Configurable service name.
This value is used to look up the port and host name in configurable
services. For example,
TCPIPProfile1
. - <Hostname>:<Port>.
This value is the host name followed by the port number (separated
by a colon); for example,
tcpip.server.com:1111
- <Port>. This value is the port number. In this case, the host name is assumed to be localhost.
- Configurable service name.
This value is used to look up the port and host name in configurable
services. For example,
- Use the Timeout waiting for a data record (seconds) property to specify how long the node listens on a connection for more data after the first byte of data arrives. You can specify any length of time in seconds. The default is 60 seconds. When the specified time is exceeded, all available data is sent to the Failure terminal.
- Use the Connection
details property to specify either the host name and port
number to be used, or the name of a configurable service. This property
is mandatory. The following formats are supported:
- On the Advanced tab, set the properties
that determine how the data stream is controlled.
- Use the Close connection property
to specify when and how to close the connection.
- Select No to leave the connection open. This value is the default.
- Select After timeout to close the connection when a timeout occurs.
- Select After data has been received to close the connection when the end of the record is found.
- Select Close input stream after a record has been received to close the input stream as soon as the data is retrieved. This property is not selected by default. When the connection input stream is reserved, no other node can use it without specifying the ID.
- Use the Input Stream
Modification property to specify whether to reserve the input
stream for use only by input and receive nodes that specify the connection
ID, or to release the input stream at the end of the flow. These options are available only if you do not select the Close input stream after a record has been received property.
- Select Leave unchanged to leave the input stream as it was when it entered the node. This value is selected by default.
- Select Release input stream to specify that this input stream is returned to the pool and is available for use by any input or receive node.
- Select Reserve input stream (for use by future TCPIP input and receive nodes) to specify that this input stream can be used only by this node and by other input or receive nodes that request it by specifying the connection ID. When the connection input stream is reserved, no other nodes can use it without specifying the correct connection ID.
- Select Reserve input stream (for use by future TCPIP input and receive nodes) then release after propagate to specify that this input stream can be used only by this node and receive nodes that request it by specifying the connection ID. After the message is propagated, this input stream is returned to the pool and becomes available for use by any input or receive node.
- Use the Output Stream
Modification property to specify whether to release the output
stream.
- Select Leave unchanged to leave the output stream as it was when it entered the node. This value is selected by default.
- Select Release output stream to specify that this output stream is returned to the pool and is available for use by any output node.
- Select Reserve output stream (for use by future TCPIP output nodes) to specify that this output stream can be used only by this node and by other output nodes that request it by specifying the connection ID. When the connection input stream is reserved, no other nodes can use it without specifying the correct connection ID.
- Select Reserve output stream (for use by future TCPIP output nodes) then release after propagate to specify that this output stream can be used only by this node and output nodes that request it by specifying the correct connection ID. After the message is propagated, this output stream is returned to the pool and becomes available for use by any output node.
- Use the Close connection property
to specify when and how to close the connection.
- On the Request tab,
specify the location of the data to be written. You can specify the
properties on this tab as XPath or ESQL expressions. Content Assist
is available in the Properties view and also in the XPath Expression
Builder, which you can run by clicking Edit to
the right of each property.
- In Hostname location,
specify the location of the value to override the Hostname that is set in the Connection details property of the Basic tab.
If you do not specify a location, the default value is $LocalEnvironment/TCPIP/Receive/Hostname.
- In Port location,
specify the location of the value to override the Port that is set in the Connection details property of the Basic tab.
If you do not specify a location, the default value is $LocalEnvironment/TCPIP/Receive/Port.
- In ID location,
specify the location of the Id of
the socket that is used. This internal identifier is used by IBM® Integration Bus to uniquely identify a connection.
If you do not specify a location, the default value is $LocalEnvironment/TCPIP/Receive/Id.
- In Reply ID location,
specify the location of the Reply ID that is stored on the connection
that is being used. The Reply ID can be used when data is returned
in an input node. If you do not specify a location, the default value is $LocalEnvironment/TCPIP/Receive/ReplyId.
- In Hostname location,
specify the location of the value to override the Hostname that is set in the Connection details property of the Basic tab.
- On the Result tab, set values for
the properties that determine where the reply is stored.
- Use the Output data
location property to specify the start location in the output
message tree where the parsed elements from the bit string of the
message are stored. The default value is
$OutputRoot
. - Use the Copy local
environment property to specify whether the local environment
is copied to the output message.
- If Copy local environment is selected, a new copy of the local environment is created in the tree, and it is populated with the contents of the local environment from the preceding node. Therefore, if a node changes the local environment, the upstream nodes are not affected by those changes because they have their own copies. This value is the default.
- If Copy local environment is not selected, the node does not generate its own copy of the local environment, but uses the local environment that is passed to it by the preceding node. Therefore, if a node changes the local environment, the changes are reflected by the upstream nodes.
- Use the Output data
location property to specify the start location in the output
message tree where the parsed elements from the bit string of the
message are stored.
- On the Input Message Parsing tab,
set values for the properties that the node uses to determine how
to parse the incoming message. If the incoming message has an MQRFH2 header, you are not required to set values for the Input Message Parsing properties because the values are derived from the
<mcd>
folder in the MQRFH2 header; for example:<mcd><Msd>MRM</Msd><Set>DHM4UO906S001</Set><Type>receiptmsg1</Type> <Fmt>XML</Fmt></mcd>
If you set values, and if they differ from the values in the MQRFH2 header, the values in the MQRFH2 header take precedence.
- In Message domain,
select the name of the parser that you are using from the list. The
default is BLOB.
You can choose from the following options:
- DFDL
- XMLNSC
- DataObject
- JSON
- BLOB
- MIME
- MRM
- JMSMap
- JMSStream
- XMLNS
- If you are using the DFDL parser, the XMLNSC parser
in validating mode, or the MRM parser, specify the relevant Message model. For XMLNSC, if your schema files are in an application or static library, leave this property blank. If your messages are modeled in a referenced shared library or message set, select the top-level shared library for the shared library or message set that contains the schema files.
- If you are using the DFDL or MRM parsers, select the
correct message from the list in Message.
This list is populated with messages that are defined in the Message model that you selected.
- If you are using the MRM parser, select the format of
the message from the list in Physical
format. This list includes all the physical formats that you defined for this Message model.
- Specify the message coded character set ID in Message coded character set ID.
- Select the message encoding from the list in Message encoding or specify a numeric
encoding value. For more information about encoding, see Data conversion.
- In Message domain,
select the name of the parser that you are using from the list. The
default is BLOB.
- On the Parser Options tab:
- The Parse timing option
is, by default, set to On Demand,
which causes parsing of the message to be delayed. To cause the message to be parsed immediately, see Parsing on demand.
- If you are using the XMLNSC parser, set values for the
properties that determine how the XMLNSC parser operates. For more information, see Manipulating messages in the XMLNSC domain.
- The Parse timing option
is, by default, set to On Demand,
which causes parsing of the message to be delayed.
- Use the Records and Elements tab
to specify how the data is interpreted as records. Only one record
is retrieved each time the TCPIPClientReceive node is
started; therefore, if the TCP/IP stream contains multiple logical
messages, you must start the node multiple times to receive all the
messages.
- Use the Record detection property
to determine how the data is split into records, each of which generates
a single message. Choose from the following options:
- The Connection closed property specifies that all of the data that is sent during a connection is a single record.
- The Fixed Length property specifies that each record is a fixed number of bytes in length. Each record contains the number of bytes specified in the Length property.
- Select Delimited if the records that you are processing are separated, or terminated, by a DOS or UNIX line end or by a sequence of user-defined delimiter bytes. Specify the delimiter and delimiter type in the Delimiter and Delimiter type properties.
- Select Parsed Record Sequence if the file contains a sequence of one or more records that are serially recognized by the parser that is specified in Message domain. The node propagates each recognized record as a separate message. If you select the Record detection option, the parser that is specified in Message domain must be DFDL, XMLNSC, or MRM.
- If you set Record detection to Fixed Length, use Length to specify the length of
the output record. This value must be between 1 byte and 100 MB. The default is 80 bytes.
- If you set Record detection to Connection closed, Fixed Length, or Delimited, a limit of 100 MB applies to the length of the records. If you set Record detection to Parsed Record Sequence, the TCPIPClientReceive node does not determine or limit the length of a record. Nodes that are downstream in the message flow might try to determine the record length or process a long record. You can apply message flow techniques that are described in the Large Messaging sample to make the best use of the available memory.
- If you set Record detection to Delimited, use Delimiter to specify the delimiter
to be used. Choose from the following options:
- DOS or UNIX Line End, on UNIX systems, specifies the line feed character (<LF>, X'0A'), and, on Windows systems, specifies a carriage return character followed by a line feed character (<CR><LF>, X'0D0A'). The node treats both of these strings as delimiters, irrespective of the system on which the integration node is running. If both strings can be seen in the same record, the node recognizes both as delimiters. The node does not recognize X'15' which, on z/OS® systems, is the 'newline' byte; if your input file is coded with EBCDIC new lines, set this property to Custom Delimiter and set Custom delimiter to 15.
- If you select Custom Delimiter, you can specify a sequence of bytes in Custom delimiter
- In Custom delimiter,
specify the delimiter byte or bytes to be used when Delimiter is set to Custom delimiter. Specify this value as an even-numbered string of hexadecimal digits. The default is X'0A' and the maximum length of the string is 16 bytes (represented by 32 hexadecimal digits).
- If you set Record detection to Delimited, use Delimiter type to specify the type
of delimiter. You can select from the following options.
- Infix. If you select this value, each delimiter separates a record. If the data ends with a delimiter, the (zero length) data that follows the final delimiter is still propagated, although it contains no data.
- Postfix. If you specify this value, each delimiter terminates records. If the data ends with a delimiter, no empty record is propagated after the delimiter. If the data does not end with a delimiter, it is processed as if a delimiter follows the final bytes of the data. The default value is Postfix.
The TCPIPClientReceive node considers each occurrence of the delimiter in the input as either separating (infix) or terminating (postfix) each record. If the data begins with a delimiter, the node treats the (zero length) content that precedes that delimiter as a record and propagates an empty record to the flow. The delimiter is never included in the propagated message.
- Use the Record detection property
to determine how the data is split into records, each of which generates
a single message. Choose from the following options:
- Use the Validation tab to provide
validation that is based on the message set for predefined messages.
For more information about validation, see Validating messages. For information about how to complete this tab, see Validation tab properties.