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.

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

Note: SQLJ using type 2 connectivity is supported in a Liberty JVM server. SQLJ using type 4 connectivity is not supported.

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.