DB2 10.5 for Linux, UNIX, and Windows

Creating Java routines

Creating Java™ routines consists of executing a CREATE statement that defines the routine in a database server, and developing the routine implementation that corresponds to the routine definition.

Before you begin

For a list of restrictions associated with Java routines see:

About this task

The ways in which you can create Java routines follow:
  • Using IBM® Data Studio
  • Using IBM IBM Data Studio
  • Using the database routine development features in IBM Rational® Application Developer
  • Using the DB2® command window

In general it is easiest to create Java routines using the IBM Data Studio, although many developers enjoy the ability to create Java routines from within the integrated Java development environment provided by IBM Rational Application Developer. If these graphical tools are not available for use, the DB2 command window provides similar support through a command line interface.

Create Java routines using one of the following procedures:

Procedure