Running the Axis Server for WSSConnector Service

To deploy the WSSConnector service which deploys the WSProxy (wrapped / runnable), some additional configuration is necessary. Details are given below:

Package contents

General package contents (available in HPSEARCH_HOME/services folder) are as follows. (NOTE: Some contents might be a bit different)

Additional configuration

The axisServer.sh script looks as follows
#!/bin/sh

# Set inputs

# Set default port = 9090
port=9090;

while getopts p: o
do      case "$o" in
        p)      port=$OPTARG;;
        [?])    ;;
        esac
done

# Set Paths
. setenv.sh

SERVICE_JARS=`echo lib/*.jar | tr ' ' ':'`;

java 	-Dlog4j.props="$HPSEARCH_HOME/conf/log4j.properties" 		\
		-Dnb.config="$NB_HOME/config/ServiceConfiguration.txt" 	\
		-classpath $JARS:$CLASSPATH:$SERVICE_JARS 		\
		org.apache.axis.transport.http.SimpleAxisServer 	\
		-p $port
	

Deploying services using HPSEARCH version 1.0.1.2 or later

    Steps to follow
  1. Copy the HPSEARCH_HOME/services folder to lets say /path/to/NEW/service
  2. If you already run services with an older version of hpsearch, copy old /path/to/old/service/lib/* files into the new /path/to/NEW/service/lib folder.
    ELSE
    copy all the support jars required to deploy the service in /path/to/NEW/service/lib folder.

  3. Set the values of HPSEARCH_HOME and NB_HOME in /path/to/NEW/service/setenv.sh(.bat) file
  4. The new verison comes with a parameter -p to specify a port on command line rather than editing the .sh(.bat) file
    Default port is 9090. To run on different port (say 5600) use
    ./axisServer -p 5600
  5. If the file /path/to/NEW/service/server-config.wsdd is deleted, then you can recreate this file by opening a new shell and typing
    ./setup.sh <port>
    where port is the port on which the axis server is running (using the -p <port> option) on the current machine.

Last Updated: May 01, 2006

(back to Notes)