Distributed and local connectivity with the IMS Universal drivers
The IMS Universal drivers support distributed (type-4) and local (type-2) connectivity to IMS databases.
Distributed connectivity with the type-4 IMS Universal drivers
With type-4 connectivity, the IMS Universal drivers can run on any platform that supports TCP/IP and a Java™ Virtual Machine (JVM), including z/OS®. To access IMS databases, the type-4 IMS Universal drivers first establish a TCP/IP-based socket connection to IMS Connect. IMS Connect is responsible for routing the request to the IMS databases by using the Open Database Manager (ODBM), and sending the response back to the client application. The DRDA protocol is used internally in the implementation of the type-4 IMS Universal drivers. You do not need to know DRDA to use the type-4 IMS Universal drivers.
The type-4 IMS Universal drivers support two-phase commit (XA) transactions. IMS Connect builds the necessary z/OS Resource Recovery Services (RRS) structure to support the two-phase commit protocol. If two-phase commit transactions are not used, RRS is not required.
To establish a connection to IMS, the driverType connection property must be set to indicate distributed (type-4) connectivity to IMS
After successful authentication, the IMS Universal drivers send other socket connection information, such as program specification block (PSB) name and IMS database subsystem, to IMS Connect and ODBM to allocate the PSB to connect to the database.
A connection to an IMS database is established only when a program specification block (PSB) is allocated. Authorization for a particular PSB is done by the ODBM component during the allocation of a PSB.
The type-4 IMS Universal drivers support connection pooling, which limits the time that is needed for allocation and deallocation of TCP/IP socket connections. To maximize connection reuse, only the socket attributes of a connection are pooled. These attributes include the IP address and port number that the host IMS Connect is listening on. As a result, the physical socket connection can be reused and additional attributes can be sent on this socket to connect to an IMS database. When a client application of the type-4 IMS Universal drivers makes a connection to IMS, this means:
- A one-to-one relationship is established between a client socket and an allocated PSB that contains one or more IMS databases.
- A one-to-many relationship is established between IMS Connect and the possible number of database connections it can handle at one time.
- IMS Connect does the user authentication.
- ODBM ensures that the authenticated user is authorized to access the given PSB.
The following figure shows how the type-4 IMS Universal drivers route communications between your Java client applications that are running in a distributed environment and an IMS subsystem.
You can also use the type-4 IMS Universal drivers if your Java clients are running in a z/OS environment but are on a separate logical partition from the IMS subsystem. Use type-4 connectivity from a z/OS environment if you want to isolate the application runtime environment from the IMS subsystem environment.
Local connectivity with the type-2 IMS Universal drivers
Local connectivity with the type-2 IMS Universal drivers is targeted for the z/OS platform and runtime environments. Use type-2 connectivity to connect to IMS subsystems in the same logical partition (LPAR).
z/OS runtime environment | Type-2 IMS Universal drivers supported |
---|---|
WebSphere® Application Server for z/OS or WebSphere Application Server Liberty |
|
IMS Java dependent regions (BMP, JMP, JBP, IFP, and MPR regions); CICS |
|
CICS OSGi JVM server |
|
CICS Liberty JVM server |
|
Db2 Java Stored Procedures |
|
z/OS batch |
|
Because it runs on the same LPAR as the IMS subsystem, during connection time, a client application of the type-2 IMS Universal drivers does not need to supply an IP address, port number, user ID, or password. The driverType property must be set to indicate local (type-2) connectivity to IMS.
The following figure shows how the type-2 IMS Universal drivers route communications between your Java client applications that are running in an LPAR inside a z/OS mainframe environment and an IMS subsystem that is located in the same LPAR.
RRSLocalOption connectivity type
In addition to type-4 and type-2 connectivity, the RRSLocalOption connectivity type is supported by the IMS Universal Database resource adapter running on WebSphere Application Server for z/OS. With RRSLocalOption connectivity, applications using the IMS Universal Database resource adapter do not issue commit or rollback calls. Instead, transaction processing is managed by WebSphere Application Server for z/OS. Two-phase commit (XA) transaction processing is not supported with RRSLocalOption connectivity type.