# COSMOS Developer's Guide

## Deploying Student-Teacher MDR in a Web Server

After you have tested an MDR in Eclipse, you can deploy it on a web server for the production environment. You first need to have the specific Axis2 JAR files installed on the web server (see the "COSMOS Prerequisites" chapter in the COSMOS Installation Guide). Then you need to package the web service in axis archive (AAR) format, which has the following directory structure:

    <data manager name>/lib/
                       /META-INF/
                       /<class files>

The root directory is the name of the data manager. It will be used as the axis2 service group name. The lib directory contains all dependency jar files. The META-INF directory contains all WSDL and XSD files for the web service definition, as well as the services.xml file. The class files are also packaged in their corresponding Java package directory structure. The Student-Teacher MDR will have the following structure.

    ExampleMdr/lib/*.jar
              /META-INF/cmdbfQuery.wsdl
                       /QueryService.wsdl
                       /services.xml
                       /cmdbfDatamodel.xsd
              /org/eclipse/cosmos/provisional/example/mdr/ExampleMdr.class

This web service directory can then be copied to the axis2 services directory (<web-server-dir>/webapps/axis2/WEB-INF/services).

[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]