在可以从宏调用函数之前,必须对 Java 语言环境进行一些附加设置:
java -classpath %CLASSPATH%;C:\DB2WWW\Javaclas dtw_samp %1 %2 %3 %4 %5 %6
CLIETTE DTW_JAVAPPS{ MIN_PROCESS=1 <= Required: this value must be 1 because the JAVAPPS cliette is multi-threaded. MAX_PROCESS=1 <= Required: this value must be 1 because the JAVAPPS cliette is multi-threaded. EXEC_NAME=launchjv.bat <= The name of the batch file that includes the classpath statements }
启动 Net.Data 连接管理器时,Net.Data 将启动配置文件中指定的 Java cliette。 cliette 变得可用之后就从您的 Net.Data 宏应用程序处理 Java 语言环境请求。
ENVIRONMENT DTW_JAVAPPS ( OUT RETURN_CODE ) CLIETTE "DTW_JAVAPPS"