| CNRI Repository Type Creation | ||
|---|---|---|
| Prev | ||
Now that the servlet and type signatures are created and compiled, they must be deposited into the repository. This is done using the XMLLoader tool. Assuming the repository jar file is in your classpath, this tool can be invoked by typing the following command.
jre net.cnri.adore.XMLLoader.XMLFrameThis launches the GUI application below.

jre net.cnri.adore.XMLLoader.BasicLoaderThe XMLLoader utility takes an XML file which describes repository operations to perform. The DTD which defines this grammar can be found in the file DO-DTD-V02.dtd
An example of a XMLLoader file can be found in AdoraTestTypes.xml, the script used to load the sample type signature and servlet used in the previous sections.
For a type to be usable within a repository, it must be registered. This means that appropriate handles must be created so that the repository can properly resolve types. The handles that must be created are:
Type Signature ID - This handle should resolve to the ID of the digital object that its class file is contained within.
Servlet ID - This handle should also resolve to the ID of the digital object its class files are contained within.
Digital Object ID's - Handles for each digital object pointed to from the type signature and servlet handles should have its own handle which resolves to the repository handle.
Repository - Every repository should have a handle which resolves to a URL. This URL should resolve to a file containing the repository's CORBA IOR. This handle is necessary for any use of the repository, and should already exist.