11.3.4 Creating cosminexus.xml

To create the applications containing cosminexus.xml, you must first include the created cosminexus.xml in the application. The following figure shows how to create cosminexus.xml.

Figure 11-5 How to create cosminexus.xml

[Figure]

The methods of creating cosminexus.xml include the method of using WTP of Developer and the method of using the text editor. Each of these methods is described as per points (1) through (3) in the figure.

Organization of this subsection
(1) Method of creating cosminexus.xml by using Developer
(2) Method of creating cosminexus.xml by using a template
(3) Method of creating cosminexus.xml without using a template

(1) Method of creating cosminexus.xml by using Developer

With Application Server, you can create cosminexus.xml by using WTP of Developer. For details on how to create cosminexus.xml by using WTP of Developer, see 5.3.1 Creating cosminexus.xml in the uCosminexus Application Server Application Development Guide.

(2) Method of creating cosminexus.xml by using a template

If you use a text editor to create cosminexus.xml, you can easily create cosminexus.xml if you use the template file.

The templates are stored in the following locations.

Template storage location
  • In Windows
    Cosminexus-installation-directory\CC\admin\templates\cosminexus.xml
  • In UNIX
    /opt/Cosminexus/CC/admin/templates/cosminexus.xml

You copy the template and store in the archive file or expansion destination directory.

The storage destination of cosminexus.xml is as follows:

To import an EAR file
  • Storage destination in the EAR (for the archive-format applications)
    EAR-root/META-INF/cosminexus.xml
  • Storage destination in the application directory (for the exploded archive-format applications)
    For details on the storage destination of cosminexus.xml in the exploded archive-format applications, see 13.4.2 Configuration of the application directory.
To import a WAR file
Specify the storage destination of cosminexus.xml with the cjimportwar command. For details on the cjimportwar command, see cjimportwar (Importing WAR applications) in the uCosminexus Application Server Command Reference Guide.
Note
The template contains the URI file:///Cosminexus-installation-directory/CC/admin/dtds/cosminexus_8_0.dtd that presumes that the Cosminexus installation destination is re-written as the storage destination of the schema definition file specified in the DOCTYPE element. The J2EE server does not reference this URI, so the URI need not be rewritten. However, if you use the URI in an editor such as an XML editor, rewrite this URI according to the environment to be used.

(3) Method of creating cosminexus.xml without using a template

To create cosminexus.xml without using a template, you use a text editor to define the Cosminexus Application Server-specific information based on the manual. For details on the DOCTYPE element required when you use a text editor to create cosminexus.xml and the contents defined in cosminexus.xml, see 2. Cosminexus Application Property File (cosminexus.xml) in the uCosminexus Application Server Application and Resource Definition Reference Guide.