#!/bin/sh

BINDIR="$0"
BINDIR=`type -path $BINDIR` >/dev/null 2>&1
BINDIR=${BINDIR%/*}

#
# source a script that extracts RUNTIME_ARGS and APP_ARGS
#
. $BINDIR/.extract_args

#
# Run the registry
#

#ibm.11864 - start
if [ -f $BINDIR/java ]
then                  
    $BINDIR/java $RUNTIME_ARGS sun.rmi.registry.RegistryImpl $APP_ARGS
else                  
    export THREADS_TYPE=native_threads 
    $BINDIR/jre $RUNTIME_ARGS sun.rmi.registry.RegistryImpl $APP_ARGS 
fi                   
#ibm.11864 - end



