Developer's Guide


Deploying Student Teacher MDR in Tomcat

After you have tested an MDR in Eclipse, you can deploy it on a Tomcat server for the production environment. You first need to have Axis2 web archive (version 1.3) installed in tomcat, which can be downloaded from here: http://ws.apache.org/axis2/download/1_3/download.cgi. 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. 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 (<tomcat>/webapps/axis2/WEB-INF/services).


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