Nonstop Database, HiRDB Version 9 UAP Development Guide
To code an external Java stored routine:
Code the program that is to be registered as an external Java stored routine.
For notes about Java program coding, see 9.4 Notes about Java program creation.
The following figure shows an example of Java program coding.
Figure 9-2 Example of Java program coding
Create a Class file from the Java file using the javac command.
The following figure shows an example of compilation.
Figure 9-3 Example of compilation
Execute the compiled file on the client's Java virtual machine to test and debug it.
For notes about testing and debugging, see 9.5 Notes about testing and debugging.
The following figure provides an overview of testing and debugging.
Figure 9-4 Overview of testing and debugging
Use the jar command to create a JAR file from multiple Class files.
For notes about JAR file creation, see 9.6 Notes about JAR file creation.
The following figure shows an example of archiving in the JAR format.
Figure 9-5 Example of archiving in JAR format
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.