|Oracle8i SQLJ Developer's Guide and Reference
Release 3 (8.1.7)
Part Number A83723-01
As discussed previously, you can specify a
.jar file on the SQLJ command line in to customize any profiles that the
.jar file contains.
When using a
.jar file for profiles, the manifest entry for each profile must contain the line:
Accomplish this by: 1) creating a plain text file with two lines for each profile that will be included in the
.jar file--one line specifying the path or package and name, and one line as above; and 2) using the
-m option to input this file.
The two lines must be consecutive (no blank line in between), and there must be a blank line preceding line-pairs for additional profiles.
For example, presume your
MyApp application (in the directory
foo/bar) has three profiles, and you will be creating a
.jar file that will include these profiles. Complete the following steps:
Name: foo/bar/MyApp_SJProfile0.ser SQLJProfile: TRUE Name: foo/bar/MyApp_SJProfile1.ser SQLJProfile: TRUE Name: foo/bar/MyApp_SJProfile2.ser SQLJProfile: TRUE
Presume you call this file
jarto create the
.jarfile, use the
-moption to input your text file as follows (presume you want to call the .
jar utility constructs the manifest during creation of the
.jar file, it reads your text file and inserts the
SQLJProfile: TRUE line into the manifest entry of each profile. It accomplishes this by matching the names in the manifest with the names you specify in your text file.
When you specify a
.jar file on the SQLJ command line, each profile in the
.jar file is deserialized and customized.
.jar file is successfully customized only if all the profiles it contains are successfully customized. After a successful customization, each profile has been reserialized into a
.ser file, the
.jar file has been modified to replace the original
.ser files with the customized
.ser files, and the
.jar file manifest has been updated to indicate the new entries.
If any error is encountered in the customization of any profile in a
.jar file, then the
.jar file customization has failed, and the original
.jar file is left completely unchanged.