apache > ws.apache
Pubscribe
 

Compile and Deploy the Service

Introduction

In this step of the tutorial, the filesystem example code and the generated classes are compiled and deployed to the Pubscribe Web application. An Ant script is provided for compiling and deploying. Detailed instructions for using the Ant script are provided in the Developer Guide.

Run the Compile/Deploy Ant Script

To compile and deploy the service:

  1. Copy INSTALL_DIR/examples/filesystem/src/java/example to WORK_DIR/generated/filesystem/src/java.
  2. Using a text editor, open WORK_DIR/generated/filesystem/build.properties.
  3. Uncomment the pubscribe.webapp.dir property and set it to the location where the Pubscribe Web application is installed. If you are using Tomcat and have CATALINA_HOME set, you do not need to modify this property.
  4. Uncomment and modify the proxy settings if you require a proxy to connect to external Web sites.
  5. Save and close build.properties.
  6. From a command prompt, change directories to WORK_DIR/generated/filesystem.
  7. Run ant compile deploy. The service is compiled and deployed to the Pubscribe Web application.
  8. Start Tomcat if it is not already started.
  9. Using a browser, go to http://localhost:8080/pubscribe/services and verify that the filesystem service is deployed.

go to the previous step Back go to the next step Next