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® , you must have the latest version of the IBM® Data Server Driver for JDBC and SQLJ. For more information about required APARs, see Detailed system requirements. You must also add the DB2 SDSNLOD2 library to the CICS STEPLIB concatenation.

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 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: Application Programming Guide and Reference 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.



dfhtk4b.html | Timestamp icon Last updated: Monday, 5 June 2017