. ../../../Scripts/SetEnvironment

$IRDEL -ORBrepository `cat ../../../$IRSERV_REF` Arithmetic::Count
$IRFEED -ORBrepository `cat ../../../$IRSERV_REF` Count.idl

cd ../../..
$JAVA -classpath $CLASSPATH $PCOEXPORT -r PCO1_iArithmetic_iCount \
IOR/PCO1_iArithmetic_iCount.ref

cd Samples/Clients/Simple
echo

while true
do

echo Waiting for Universal Servant to be installed...

rm -f Count.ref

while test ! -s Count.ref
do
echo > /dev/null
done

echo Starting Client...

$JAVA -classpath $CLASSPATH Arithmetic.Client \
-OAthread_pool 50 -ORBthreaded

echo
echo Client operations complete.
done
