#!/bin/sh
#
# Data Source Setup - IBM WebServices Gateway
#
# The arguments are:
# "1: WebServices Gateway dir"
# "2: WebSphere nodename"
# "3: WebSphere AppServer dir"
# "4: DB2 user id"
# "5: DB2 password"

echo "calling $3/bin/XMLConfig.sh -adminNodeName $2 -import $1/install/wsgw_datasource.xml -substitute \"NODE_NAME=$2;WAS_DIR=$3;DB_DEFAULT_USER=$4;DB_DEFAULT_PWD=$5;JNDI_NAME=jdbc/WSGWDB;DB_URL=\""

$3/bin/XMLConfig.sh -adminNodeName $2 -import $1/install/wsgw_datasource.xml -substitute "NODE_NAME=$2;WAS_DIR=$3;DB_DEFAULT_USER=$4;DB_DEFAULT_PWD=$5;JNDI_NAME=jdbc/WSGWDB;DB_URL="

exit $?
