#!/bin/sh

PATH=../../../daemon:../../../coss/naming:../../../imr:../../../ir:$PATH
MICORC=/dev/null
export MICORC

ADDR=inet:`uname -n`:12456

# run BOA daemon
micod -ORBIIOPAddr $ADDR --forward &
micod_pid=$!
sleep 1

trap "kill $micod_pid" 0

# register server
imr create Banking unshared `pwd`/server \
  IDL:Account:1.0 IDL:Bank:1.0 -ORBImplRepoAddr $ADDR

#imr create Banking unshared "rsh zirkon `pwd`/server" \
#  IDL:Account:1.0 IDL:Bank:1.0 -ORBImplRepoAddr $ADDR

# run client
./client $ADDR
