SQL/MX Programming Manual for Java

Introduction
HP NonStop SQL/MX Programming Manual for Java523726-003
1-17
Processing With Module Definition Files
Processing With Module Definition Files
This method of SQLJ processing, which can be activated in SQL/MX Release 2.x by
using the -createMDF option on the command line or in a properties file, generates
module definition files (.m files) in addition to extended profiles. The SQLJ translator
program, sqlj.tools.Sqlj, produces a module definition file during customization
and automatically SQL compiles the module definition file by invoking the SQL/MX
compiler to produce a module.
Processing an SQLJ program with module definition files involves these steps:
1. Creation of the SQLJ Source File on page 1-11
2. Translation on page 1-11
3. Compilation by the Java Compiler on page 1-12
4. Customization With Module Definition Files on page 1-19
5. Compilation by the SQL/MX Compiler (MXCMP) on page 1-19
For the entire process, see Figure 1-3 on page 1-18.
The first three steps of creating, translating, and Java compiling an SQLJ program are
the same as if you had chosen to process the SQLJ program without module definition
files. For more information, see Default Processing Without Module Definition Files on
page 1-9.
The last two steps of customization and SQL compilation, however, differ from the
default method of processing an SQLJ program without module definition files.