#!/bin/sh
# -----------------------------------------------------------------
#  IBM Websphere MQ Support for Java Message Service
#  IBM Websphere MQ Default Configuration Execution Script for Unix
#  variants
#
#  Licensed Materials - Property of IBM
#
#  5648-C60 5724-B4 5655-F10
#
#  (c) Copyright IBM Corp. 2002. All Rights Reserved.
#
#  US Government Users Restricted Rights - Use, duplication or
#  disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
# ------------------------------------------------------------------

java -cp "$CLASSPATH:$LD_LIBRARY_PATH/postcard.jar" -DMQJMS_LOG_DIR=$MQ_JAVA_DATA_PATH/log -DMQJMS_TRACE_DIR=$MQ_DATA_PATH/trace com.ibm.mq.jms.postcard.JmsDefaultConfiguration
rc=$?
if test $rc -eq 200
then
    exit 0
elif test $rc -eq 0
then
    exit 0
elif test $rc -eq 201
then
    exit 1
elif test $rc -eq 202
then
    exit 2
elif test $rc -eq 127
then
    echo Failed to find java in PATH.
else
    echo The JRE has returned $rc.
    exit 2
fi