This chapter contains the following information to help you understand how BEA Connect TCP for IMS works:
BEA Connect TCP for IMS runs as an ordinary transaction-oriented BMP and serves as the interface between IMS (via the IMS Message Queue) and remote BEA Connect gateways (via TCP/IP).
The BMP "listens" for incoming TCP/IP connection requests from remote gateways. When a request is received, an inbound session is established over which the remote gateway may present requests for service.
When a request is received from a remote system, it is relayed to IMS (via the IMS Message Queue) and IMS schedules the appropriate Server Transaction to process the request. If a response is required, the Server Transaction places the response in the IMS Message Queue for the BMP. The BMP retrieves the response from the Message Queue and returns it to the remote system over the TCP/IP connection.
BEA Connect TCP for IMS can also initiate TCP/IP connections with remote systems. These outbound sessions are used to send IMS Client requests to remote systems for processing.
An IMS Client Transaction initiates a request by placing a properly formatted message into the IMS Message Queue for the BMP. The BMP retrieves the request and forwards it to the appropriate remote system for processing. When the response (if required) is received from the remote system, it is placed into the IMS Message Queue for delivery to a transaction that will process the response.
BEA Connect TCP for IMS is an ordinary IMS BMP that is started by submitting the appropriate JCL (or as a started task) for a batch job. The following activities then occur.
Inbound Processing
Figure 2-1 IMS Inbound Processing

Outbound Processing
Figure 2-2 IMS Outbound Processing

How BEA Connect TCP for IMS Is Initialized
An IMS server request, also referred to as an inbound request (relative to IMS), is a request issued by a remote client for a service provided by an IMS server transaction.
An IMS client request, also referred to as an outbound request (relative to IMS), is a request issued by an IMS application transaction (MPP) for a service provided by a remote system.
Because of the design philosophy of IMS, processing of an IMS client request occurs in two distinct "phases":
Transactions T1 and T2 may in fact be the same transaction (with appropriate logic to perform the required request or response processing, based on execution context). The point is that T1 and T2 must be two distinct transaction executions. This is necessary because T1 can only initiate a request; it cannot "wait" on the response to that request because the architecture and design philosophy of IMS do not permit this.
How BEA Connect TCP for IMS Processes an IMS Client Request
Once started, BEA Connect TCP for IMS normally executes as a non-ending job, servicing inbound requests from remote systems and outbound requests originated by IMS client transactions.
Normal termination is initiated when a system operator issues the SHUTDOWN command. In response to a SHUTDOWN command, BEA Connect TCP for IMS: