Programming to the JDBC and SQLJ APIs

Java™ programs for CICS® must adhere to the programming rules of the JDBC application programming interfaces (API), which might be more restrictive than the general CICS programming model.

The IBM® Data Server Driver for JDBC and SQLJ provides support for JDBC 4.2 and earlier versions. The db2jcc4.jar supports JDBC 4.3 (when using Java 11), 4.2, 4.1, and 4.0. The db2jcc.jar supports JDBC 3.0 and earlier.

6.3 beta Support for Java 8 and Java 11 is removed as of CICS TS 6.3.

When connecting an OSGi Java program to Db2®, add com.ibm.db2.jcc;resolution:=optional to the Import-Package in your bundle manifest.

You can find more information about the JDBC APIs at the Oracle JDBC website. For information about developing Java applications that use the JDBC and SQLJ APIs, see Java application development for IBM data servers in Db2 for z/OS product documentation.