| Main Page
 PAOS Sample
 
 1. Introduction
    This explains how to compile and run the sample PAOS application. 
    Follow these steps to run the sample program.
    The following variables are used in the sample :
    Solaris Sparc/X86  : <BEGIN_DIR> = <INSTALL_DIR>/SUNWamLinux : <BEGIN_DIR> = <INSTALL_DIR>/identity 
 
 2. Instructions to run the sample 
 
Set these environment variables. These environment variables will be
       used for running the "make"/"gmake" command and "run" command. The
       "Makefile" and "run" are in the same directory where the sample files
       are located, and the directory is 
       <BEGIN_DIR>/samples/phase2/paos".
       JAVA_HOME - Set this variable to your installation of JDK. It should
       be newer than JDK 1.3.1
       Go to the directory <BEGIN_DIR/samples/phase2/paos.Run gmake or make.Copy the PAOSClientServlet.classfile to the<BEGIN_DIR/libdirectory. Alternatively, you can make a
       soft-link in that directory back to this class.Now it is required to register the Sample servlet. Insert these lines
       (as described below) in the file 
       <WEB_SERVER_INSTANCE_DIR>/is-web-apps/services/WEB-INF/web.xml.
       These lines should be put just after the last</servlet>tag.
       <servlet>
       <servlet-name>PAOSClientServlet</servlet-name>
       <description>PAOSClientServlet</description>
       <servlet-class>PAOSClientServlet</servlet-class>
       </servlet>
       These lines should be put just after the last </servlet-mapping> tag.
       <servlet-mapping>
       <servlet-name>PAOSClientServlet</servlet-name>
       <url-pattern>/PAOSClientServlet</url-pattern>
       </servlet-mapping>
       Restart the server.
    Modify the "run" script to reflect your particular installation.
    Type "run" on command line. This will actually run PAOSServerprogram. 
    You will see the output from the PAOSServerprogram. You can also see the
    output fromPAOSClientServletprogram in the web server's log file (for Sun
    Java System Web Server, it would be the "errors" file inlogs/subdirectory
    under the web server instance directory). |