mPower Server: J2EE Platform


Describes platform configuration and software installation for the mPower server on J2EE.

This document assumes you have a working knowledge of J2EE. Contact your NetSol representative for more information. Debug logging for the Web Service API (LinkIT) is now available with J2EE.

LinkIT Deployment

If you are using LinkIT, create a Bourne shell script similar to the following, using your directories, host name, and port number:

	#! /bin/sh

	# this is the web service you are going to deploy
	DEPLOYFILE=$1

	# the name of the contextroot specified above
	SERVICE_NAME=mpower-ver_vnna

	# the directory you created
	SERVICE_DIR=mpower-ver_vnna

	# the name of the host
	HOST=http://mpower.mccue.com

	# the port that the service is on default install is 8080
	PORT=8080

	#j2ee INSTALL_BASE
	J2EE_BASE=/opt/SUNWappserver

	# base path to java home, for j2ee it is in the j2ee directory
	JAVA_HOME=$J2EE_BASE/jdk

	# unless you created your own domain then this should be correct, otherwise change domain1 to the name of your new domain
	# mpower base is the location of the actual service on the filesystem
	MPOWER_BASE=$J2EE_BASE/domains/domain1/applications/backup/j2ee-modules/$SERVICE_DIR

	# mpower libs is the location within mpower_base of the api required libraries
	MPOWER_LIBS=$MPOWER_BASE/WEB-INF/lib

	# this should not change
	CLASSPATH=$JAVA_HOME/lib/tools.jar
	for  APIFILE in $MPOWER_LIBS/*.jar ; do
	    CLASSPATH=$CLASSPATH:$APIFILE
	done

	if [ ! -f  "$J2EE_BASE/lib/wsdl4j.jar" ] ; then
	    echo "Copying wsdl4j to j2ee common lib!"
	    cp $MPOWER_LIBS/wsdl4j.jar $J2EE_BASE/lib/
	fi

	$JAVA_HOME/bin/java -classpath "$CLASSPATH" org.apache.axis.client.AdminClient -l$HOST:$PORT/$SERVICE_NAME/services/AdminService $DEPLOYFILE
	

Name the script mpower_ws.sh and save it to your mPower WEB-INF/config directory. Then cd to your WEB-INF/config directory and run the script for each service you wish to deploy:

mpower_ws.sh MsiAppOriginator/DOC/deploy.wsdd
mpower_ws.sh MsiAppExtractor/deploy.wsdd

etc. You should only have to do this once, unless additional methods are added to a service. Contact your NetSol representative for more information.