ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaha_5.4.0.1/javarest.htm

66 lines
3.9 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Restrictions on Java stored procedures" />
<meta name="abstract" content="These restrictions apply to Java stored procedures." />
<meta name="description" content="These restrictions apply to Java stored procedures." />
<meta name="DC.Relation" scheme="URI" content="javaproc.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="javarest" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Restrictions on Java stored procedures</title>
</head>
<body id="javarest"><a name="javarest"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Restrictions on Java stored procedures</h1>
<div><p>These restrictions apply to Java™ stored procedures.</p>
<ul><li>A Java stored
procedure should not create additional threads. An additional thread may be
created in a job only if the job is multithread capable. Because there is
no guarantee that a job that calls an SQL stored procedure is multithread
capable, a Java stored procedure should not create additional threads.</li>
<li>You cannot use adopted authority to access Java class files.</li>
<li>A Java stored
procedure always uses the latest version of the Java Development Kit that is installed on
the system.</li>
<li>Since Blob and Clob classes reside in both the java.sql and com.ibm.db2.app
packages, the programmer must use the entire name of these classes if both
classes are used in the same program. The program must ensure that the Blob
and Clob classes from the com.ibm.db2.app are used as the parameters passed
to the stored procedure.</li>
<li>When a Java stored procedure is created, the system generates
a program in the library. This program is used to store the procedure definition.
The program has a name that is generated by the system. This name can be obtained
by examining the job log of the job that created the stored procedure. If
the program object is saved and then restored, then the procedure definition
is restored. If a Java stored procedure is to be moved from one system
to another, you are responsible for moving the program that contains the procedure
definition as well as the integrated file system file, which contains the Java class.</li>
<li>A Java stored
procedure cannot set the properties (for example, system naming) of the JDBC
connection that is used to connect to the database. The default JDBC connection
properties are always used, except when prefetching is disabled.</li>
</ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="javaproc.htm" title="When using Java to write stored procedures, you can use two possible parameter passing styles.">Java stored procedures</a></div>
</div>
</div>
</body>
</html>