#!/bin/sh

DIR_WORK=`pwd`
cd $BIZXCLIENT_HOME/bin

JAR_DIR=.
JAR_FILES=
JAR_FILES=$JAR_FILES:$JAR_DIR/bizx-client.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/bizx-axis2reconst.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/bizx-axis2org.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/bizx-server-adapter.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-codec-1.3.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-collections-3.1.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-dbcp-1.2.1.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-discovery-0.2.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-fileupload-1.1.1.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-httpclient-3.0.1.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-io-1.2.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-logging-1.1.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/commons-pool-1.3.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/log4j-1.3alpha-8.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/servletapi-2.3.jar
JAR_FILES=$JAR_FILES:$JAR_DIR/ojdbc14.jar
CLASSPATH=$JAR_FILES

$BIZXJAVA_HOME/bin/java \
  -Xms128M \
  -Xmx128M \
  -Xss512K \
  -classpath $CLASSPATH \
  -DConfigFileName=bizxcli.properties \
  -DErrorFileName=bizxcli_error \
  jp.webedi.sfi.bizx.client.communication.BizXClientMain 2 $1 $2 $3 $4 $5 $6 >/dev/null 2>&1

RET_CODE=$?
cd $DIR_WORK

exit $RET_CODE
