版次注意事項


35.8 Chapter 21. Programming in Java

35.8.1 Java Method Signature in PARAMETER STYLE JAVA Procedures and Functions

If specified after the Java method name in the EXTERNAL NAME clause of the CREATE PROCEDURE or CREATE FUNCTION statement, the Java method signature must correspond to the default Java type mapping for the signature specified after the procedure or function name. For example, the default Java mapping of the SQL type INTEGER is "int", not "java.lang.Integer".

|35.8.2 Connecting to the JDBC Applet Server

|It is essential that the db2java.zip file used by the Java applet be at |the same FixPak level as the JDBC applet server. Under normal circumstances, |db2java.zip is loaded from the Web Server where the JDBC applet server is |running, as shown in Figure 22 of the book. This ensures a match. If, however, |your configuration has the Java applet loading db2java.zip from a different |location, a mismatch can occur. Prior to FixPak 2, this could lead to unexpected |failures. As of FixPak 2, matching FixPak levels between the two files is |strictly enforced at connection time. If a mismatch is detected, the connection |is rejected, and the client receives one of the following exceptions: |

|If a mismatch occurs, the JDBC applet server logs one of the following |messages in the jdbcerr.log file: |


[ 頁面頂端 | 前一頁 | 下一頁 | 目錄 | 索引 ]