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
Procedure
Enable your applications to use the
IBM
Data Server
Driver for JDBC and SQLJ that is supplied with DB2:
- 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.
- 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.