Configuring Java CAPS Project Components for Communication Adapters

Configuring File Adapter Inbound Connectivity Map Properties

The inbound File Adapter configuration properties, accessed from the Connectivity Map, are organized into the following section:

Parameter Settings — File Adapter Inbound

The Parameter Settings section of the inbound File Adapter Connectivity Map properties contains the top level parameters displayed in this table:

Table 50 Inbound File Adapter Connectivity Map Properties - Parameter Settings

Name 

Description 

Required Value 

Input file name

Specifies the file mask for input data files.

A file mask. The default is input*.txt. You can provide only an extension with an asterisk (), for example, *.txt, to allow all files with that extension. An input file’s extension is renamed to .~in after it is picked up.


Note –

If a file with the same name as the rename name exists, for example, input1.txt.~in , picking up the input file fails. You must ensure no files with the rename names exist before the files are processed by the inbound file poller.


Polling interval

The number of milliseconds the adapter waits between poll attempts of the input directory.

The polling interval and the MDB pool size can be “tuned” based on the expected volume and frequency of incoming messages.  

An integer; the acceptable range is an integer from 2 to 99999, inclusive, and the default is 5000 (5000 milliseconds or 5 seconds). It is not advised to enter a value less than 5 seconds.


Caution – Caution –

There is no error message if you enter an incorrect value.


Input type

Specifies the type of input file, for example, bytes.

A file type. The default is Bytes, the only valid value.

Remove EOL

Specifies whether the adapter excludes the terminating End-Of-Line (EOL) characters from records (messages) sent to a subscriber. This property only applies if the Multiple records per file property is set to True.

Select True or False

  • True: Enables the feature.

  • False: Disables the feature.

    The default is False.

Multiple records per file

Specifies whether multiple records (messages) are obtained per file. If this property is set to True, multiple records (messages) are generated per line, up to the number specified in the Maximum bytes per record property. Any data exceeding the maximum bytes per record size is sent in subsequent messages.

Select True or False.

  • True: Enables the feature.

  • False: Disables the feature.

    The default is False.

Maximum bytes per record

Specifies the maximum number of bytes per record (message) sent to a subscriber. This property only applies if the Multiple records per file property is set to True.

An integer; the acceptable range is an integer from 2 to 99999, inclusive, and the default is 4096.


Caution – Caution –

There is no error message if you enter an incorrect value.


Encoding

Specifies the valid encoding names. For more information on Java encoding, refer to the following site: http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html

The encoding names. 

SerialMode

Specifies whether messages will be handled in serial mode (one after the other) or concurrently. 

Select True or False.

  • True: Indicates that messages are handled in serial mode.

  • False: Indicates that messages handled concurrently.

    The configured default is True.

Where to Go Next

Configuring File Adapter Outbound Connectivity Map Properties.

Related Topics