#!/bin/sh 

# Copyright (c) 1999, Crossworlds Software, Inc.  Burlingame, CA, USA
# All rights reserved.
# 
# FILE
#   connector_manager_Ssa
#
# DESCRIPTION
#   This is a wrapper script of connector_manager. The connector name
# and if in STA, the agent config file is already setup.  
#
#   Use:  connector_manager_Ssa -start|-stat|-stop
#

# Find this directory
# -------------------
# Resolve links - $0 may be a link
prog=$0
progname=`basename $0`
while [ -h "$prog" ] ; do
  ls=`ls -ld "$prog"`
  link=`expr "$ls" : '.*-> \(.*\)$'`
  if expr "$link" : '.*/.*' > /dev/null; then
    prog="$link"
  else
    prog="`dirname $prog`/$link"
  fi
done
binDir=`dirname $prog`

# Set WebSphere environment
# -------------------------
 .  ${binDir}/adapterEnv.sh

# Call the generic connector management script
# --------------------------------------------
CONNECTOR=Ssa

exec ${ADAPTER_RUNTIME}/bin/connector_manager $1 ${CONNECTOR} $2 $3 $4 $5 $6
