Copyright (C) Bull, 2001-2002


Example description
-------------------
This unrealistic example is very sample for illustrating the use of
Message Driven Beans in JOnAS.

The EJBClient (MdbClient) is a pure JMS Client that sends 10 messages
on a Topic named "sampleTopic".
In the JOnAS Server is deployed a Message Driven Bean Mdb that asynchrounsly
receives and prints the messages.


Compiling this example:
----------------------
On $JONAS_ROOT/example/src/mdb/samplemdb, run the compile script,
 - compile.sh on Unix or
 - compile.bat on Windows.

If the gnu make is installed on your machine you can also build this example
by using the Makefile as it is defined in the $JONAS_ROOT/example/README.

If the Ant 1.4 build tool is installed on your machine you can also build this
example by using the build.xml as it is defined in the $JONAS_ROOT/example/README.


Running this example:
---------------------

1) You should have in your classpath, access to the JOnAS classes and
prerequired classes for JOnAS:
	. $JONAS_ROOT/bin/unix/config_env	# set CLASSPATH for JOnAS

You may use the run.sh on Unix or run.bat on Windows scripts to execute the
whole example or step by step:

2) Run the EJB Server :
	EJBServer

3) Run the EJB client:
	java samplemdb.MdbClient

4) Stops the server
	JonasAdmin -s


You may want to execute this example with the MOM JMS that is running in a
separate JVM
 - you must set the property jonas.service.jms.collocated to false in the
   jonas.properties file
 - then step 1 as before
 - then launching the MOM JMS 
     JmsServer &
 - then do step 2 to 4 as before

