The IBM Data Server Driver for JDBC and SQLJ

When a Java™ application for CICS® makes JDBC and SQLJ requests of either type 2 connectivity or type 4 connectivity to an IBM® DB2® for z/OS® database, the requests are processed by the IBM Data Server Driver for JDBC and SQLJ.

In a CICS environment using type 2 connectivity, the IBM Data Server Driver for JDBC and SQLJ converts the JDBC or SQLJ requests into their EXEC SQL equivalents. The converted requests flow into the CICS Db2 attachment facility in the same way as EXEC SQL requests from non-Java programs. The customization and tuning options for the CICS Db2 attachment facility apply equally to Java and non-Java programs.

When you are using type 2 connectivity, Db2 client information such as the ClientUser and ClientHostName values are not supported and are ignored.

The Liberty JVM server also supports type 4 connectivity that uses TCP/IP to connect to the Db2 subsystem instead of the CICS Db2 attachment facility. To use the IBM Data Server Driver for JDBC and SQLJ with CICS, you must be connected to a Db2 subsystem that supports the appropriate level of your driver version.

Details of how to code and build Java applications that use the JDBC and SQLJ application programming interfaces that apply to your version of Db2 can be found in Java application development for IBM data servers.