Creating a DMS Class Project

The DMS Class Project wizard creates a Java project. The project contains a Java annotation that contains the location of the XML file that describes the DMS subschema on which the classes are built.  The annotation values are filled from values that the user enters in the wizard. The classes are created when the project is built. An ANT script to build the classes into a jar file is created and then run. The jar file containing the classes is left in the project.

The wizard consists of one page. Fill in the following values and click Finish:

Project name. Any valid user-defined project name, consisting of letters and numbers only.

Full path to subschema XML file. The absolute path to the subschema XML file, which is the output of the @SDDL processor.

Source for DMS classes. The source folder in the new project, in which the classes are built into a package. The source folder contains

Example

The following example is a simple annotation in the os2200annotation folder of the given project.

package  os2200annotepkg;

import  com.unisys.jai.core.*;

@DMS(

                schemaxml = "D:/DMSClasses/classbuilder/jdssjb.xml",

                dmsfolder = "classfold",

                dmsclassbuildjar=

                "ECLIPSE_HOME/plugins/com.unisys.jai.core_3.3.1.A4/classbuilder.jar",

                dmsjar=

                "ECLIPSE_HOME/plugins/com.unisys.jai.core_3.3.1.A4/dmsra.jar"

             )

public class  DMSClassAnnote  {

}

The dmsclassbuildjar parameter in the annotation indicates the location of the classbuilder.jar on your system. By default, it points to the copy that is included with the CA feature. If you installed a different version that you wish to use, specify its location here.

The dmsjar parameter in the annotation indicates the location of the dmra.jar on your system. By default, it points to the copy that is included with the CA feature. If you installed a different version that you wish to use, specify its location here.

If you wish to rebuild the class jar file, make a change to the annotation file and save it. For example, if the subschema XML file changed, but not its name and location, simply insert and delete a space at the end of a line and save the annotation file. The class files and the jar are deleted and rebuilt.

For More Information

Refer to the Network Database Server Resource Adapter for the Java Platform User Guide on the Unisys Product Support Web site at www.support.unisys.com.