#! /bin/sh

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

# EJB Client launching
jclient -cp $JONAS_BASE/ejbjars/newsamplemdb.jar:$JONAS_ROOT/examples/classes newsamplemdb.MdbClient

# Stops the server
sleep 10
jonas stop
