The IMS Adapter configuration parameters, accessed from the Environment Explorer tree, are organized into the following sections:
The TCPIP Configuration section contains information for connecting to the Portal Infranet. This section contains the top level parameters, as displayed in the following table.
Table 65 Environment TCP/IP Configuration Settings
Name |
Description |
Required Value |
---|---|---|
Specifies the name of the server host. This parameter is mandatory. |
The server host name. |
|
Specifies the port that IMS Connect is listening on. This parameter is mandatory. |
A number indicating the port on which IMS Connect is listening. The default is 7777. |
The IRM (IMS Request Message) Header section contains the top-level parameters displayed in the following table.
For a full description of the IRM header, see IBM’s IMS Connect Guide and Reference (SC27-0946-00).
The following topics describe the configuration of Client IDs for the IMS Adapter.
In this mode, the IMS Adapter is configured to handle multiple requests simultaneously (parallel mode).
Set the Client ID in the IRM_Header section to a string which contains one or more trailing asterisks. For example, “SUN*”.
The Adapter will generate the rest of the Client ID string filling it with randomly generated alphanumeric characters. The length of the Client ID is 8. If you use a static Client ID, it must be unique (across deployments) if the IMS external systems which are being used are configured to connect to the same IMS Connect.
Set the IRM_SOCT in the IRM_Header section to Persistent.
This allows the Adapter to retain the physical connection so that it can leverage the use of connection pooling as a resource adapter. If this is not set to Persistent and the Client ID is configured to use dynamic generation (that is, with an “*”), then a protocol error will occur.
No other IRM_SOCT type can be used in parallel mode; as noted a protocol error will result if Persistent is not used.
For the acknowledgement response expression (IRM_F4 - ACK/NAK Response), the following additional parameters must be set (in addition to the above):
In this mode, the IMS Adapter is configured to handle one single request at a time. Multiple requests are serialized by the IMS Adapter through an internal locking mechanism.
Set the Client ID in the IRM_Header section to a string which does NOT contain an asterisk. For example, “SUNIMS”.
The Adapter will generate the rest of the Client ID string filling it with randomly generated alphanumeric characters. The length of the Client ID is 8. If you use a static Client ID, it must be unique (across deployments) if the IMS external systems which are being used are configured to connect to the same IMS Connect.
For the acknowledgement response expression (IRM_F4 - ACK/NAK Response), the following additional parameters must be set (in addition to the above):
When sending an IMS Connect interaction on a given port, an error will occur when using a ClientID which is already in use on that port. This can happen when you are executing an interaction with a ClientID, which is the same as that used by another interaction that ended as a result of a socket timeout. If this new interaction is received by IMS Connect while IMS Connect is still waiting for a response from IMS for the original interaction that received the socket timeout, a duplicate ClientID error could occur.
This can also occur if the socket timeout being used for the original interaction is set to a value which is less than the timeout set by the IRM_TIMER or the IMS Connect default timeout (set in the HWSCFGxx member). IMS Connect is not aware that the original socket has been disconnected as a result of the socket timeout until it does a subsequent read on that socket. This means it would consider the original socket still active, even though that socket has already been disconnected from the client end. Once you get to this situation, you will receive DUPECLNT errors until the IRM_TIMER expires on the IMS Connect side.
For a full discussion of Client ID and timer issues, refer to IMS Connectivity in the On Demand Environment - A Practical Guide to IMS Connectivity (IBM Publication SG24-6794-00).
The Serial Mode Settings section of the Outbound IMS Adapter Environment contains the top-level parameters displayed in the following table.
Table 67 Outbound IMS Adapter Environment - Serial Mode Settings
Name |
Description |
Required Value |
---|---|---|
Wait Timeout |
When IRM_CLIENTID is static, which results in requests being serialized, multiple threads using the same Client ID will contend for a request lock. Threads contending for a request lock, being held by another thread, will wait until the pending request thread releases the lock. This parameter controls how long, in milliseconds, a request thread will wait for the lock. |
An integer indicating the configured length of the time a thread will wait for the lock. The default is 6000 (milliseconds). |
The Connection Retry Settings section of the Outbound IMS Environment contains the top-level parameters displayed in the following table.
Table 68 Outbound IMS Adapter Environment - Connection Retry Settings
Name |
Description |
Required Value |
---|---|---|
Maximum Retries |
Specifies the number of retries to establish a connection with the IMS Adapter database upon a failure to acquire one. |
An integer indicating the number of attempts allowed to establish a connection. The configured default is 5. |
Retry Interval [ms] |
Specifies the configured length of the pause before each reattempt to access the destination file. This property is used in conjunction with the property Maximum Retries. |
An integer indicating the configured length of the time (in milliseconds) before each reattempt to access the destination file. The configured default is 5000 ( 1 second). |
The Connection Retry Settings section of the Outbound IMS Adapter Environment contains the top-level parameters displayed in the following table.
Table 69 Outbound IMS Adapter Environment - Connection Pool Settings
Name |
Description |
Required Value |
---|---|---|
Steady Pool Size |
Specifies the initial and minimum number of connections to be maintained. |
A number indicating the initial and minimum number of connections to be maintained. The configured default is 2. |
MaxPoolSize |
The maximum number of physical connections the pool keeps available at all times. 0 (zero) indicates that there is no maximum. |
A valid numeric value. The default is 10. |