#! /bin/sh

# JOnAS launching
# Check you have added samplemdb.jar in jonas.service.ejb.descriptors property definition
jonas start
jonas admin -a samplemdb.jar

##### Put example classes in CLASSPATH
export CLASSPATH=$CLASSPATH:$JONAS_ROOT/examples/classes

# EJB Client launching
jclient samplemdb.MdbClient

# Stops the server
sleep 10
jonas stop
