SQL/MX Programming Manual for Java

Program and Module Management
HP NonStop SQL/MX Programming Manual for Java523726-003
6-8
Customizing Profiles in a JAR File
Results of Customizing the Profiles in a JAR File
If you customize profiles in a JAR file by using the default method of SQLJ processing,
the customizer embeds the module definitions in the extended profiles within the JAR
file. See Figure 6-2 on page 6-8.
If you customize profiles in a JAR file by using the method of SQLJ processing that
generates module definition files, the customizer extends the profiles within the JAR
file and generates module definition files outside the JAR file in the same OSS
directory as the JAR file. If the profiles are packaged within subdirectories inside the
JAR file, the module definition files are stored in similar subdirectories outside the JAR
file in the same directory as the JAR file. See Figure 6-3 on page 6-9.
Figure 6-2. Customizing Profiles in a JAR File Without Producing Module
Definition Files
VST009.vsd
/usr/dev/myapps directory
SQLJ Customizer
SQLJ Application
with Extended Profiles
MyApp.jar
/usr/dev/myapps directory
SQLJ Application
with Profiles
MyApp.jar
META-INF/MANIFEST.MF
pkg1/
pkg1/MyProg1.class
pkg1/MyProg1_SJProfile0.ser
pkg1/MyProg1_SJProfileKeys.class
pkg2/
pkg2/MyProg2_SJProfile0.ser
pkg2/MyProg2_SJProfileKeys.class
Uncustomized Profiles (.ser files)
META-INF/MANIFEST.MF
pkg1/
pkg1/MyProg1.class
pkg1/MyProg1_SJProfile0.ser
pkg1/MyProg1_SJProfileKeys.class
pkg2/
pkg2/MyProg2_SJProfile0.ser
pkg2/MyProg2_SJProfileKeys.class
Customized Profiles (.ser files)
with Embedded Module Definitions
java sqlj.tools.Sqlj MyApp.jar