Configuring a JVM server to support DB2

A JVM server is the runtime environment for Java applications. You can configure the JVM server to support JDBC and SQLJ-based applications.

Before you begin

To use the JVM server with DB2®, it is best practice to install the latest version of the IBM® Data Server Driver for JDBC and SQLJ. You must add the Db2 SDSNLOD2 library to the CICS STEPLIB concatenation. For more information about required APARs, see CICS Transaction Server for z/OS detailed system requirements.

Procedure

Enable your applications to use the IBM® Data Server Driver for JDBC and SQLJ that is supplied with DB2:
  1. To set up the driver for a Liberty JVM server, see Configuring a Liberty JVM server for web applications. For an OSGi JVM server, see Configuring a JVM server for OSGi applications.
  2. The DB2 environment variable DB2SQLJPROPERTIES is not supported in a JVM server, instead, you should set properties related to the DB2 driver directly in your JVM profile. For a list of available properties, see DB2 for z/OS: Programming for Java.

What to do next

If you want to use JDBC or SQLJ from a Java application in an OSGi JVM server with a Java 2 security policy mechanism active, see Enabling a Java security manager.