Java routine programming
A Java routine is a Java application program that runs in a stored procedure address space. It can include JDBC methods or SQLJ clauses.
A Java routine is much like any other Java program and follows the same rules as routines in other languages. It receives input parameters, executes Java statements, optionally executes SQLJ clauses, JDBC methods, or a combination of both, and returns output parameters.