NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.0+)
The ddl2java tool produces Java source files (.java files) and compiled class files (.class files).
Supply the Java source files to the javadoc tool.
The javadoc tool produces HTML files (.html files) that document the classes. You will need this documentation
to set up the requests and read the replies.
3.
The following figure shows the preceding procedure.
Creating Classes Using ddl2java and javadoc
Legend
DDL dictionary1.
Item list file2.
ddl2java tool3.
Java source files (.java files)4.
javadoc tool5.
HTML files (.html files)6.
Compiled class files (.class files)7.
Note: If a data description in the DDL dictionary changes, you must run ddl2java and javadoc again to
generate new request and reply classes.
Suppose that you want to communicate with a Pathway server that maintains personnel records for a bank. The server uses
the following DDL data description for requests:
* SCHEMA PRODUCED DATE - TIME : 2/13/1998 16:48:50
?Section EMPLOYEE-DEF
* Definition EMPLOYEE-DEF created on 12/11/1997 at 15:25
Definition EMPLOYEE-DEF.
02 EMPNUM Pic 99.
02 EMPNAME.
03 FIRST Pic X(20).
03 LAST Pic X(30).
03 MIDDLE Pic X.
02 REGNUM Pic 99.
02 BRANCHNUM Pic 99.
End
The server uses the following DDL data description for replies:
?Section EMPLOYEE-RP
* Definition EMPLOYEE-RP created on 12/12/1997 at 14:13