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 "mdbTopic".
In the JOnAS Server is deployed a Message Driven Bean Mdb that asynchrounsly
receives and prints the messages.


Compiling this example:
----------------------
ant -find build.xml install

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

Use the run.sh on Unix or run.bat on Windows scripts to execute the
whole example.

or 
on UNIX:
	cd $JONAS_ROOT/examples/src/mdb/samplemdb
	jonas start
	jclient samplemdb.MdbClient
	jonas stop
on Windows:
	cd %JONAS_ROOT%\examples\src\mdb\samplemdb
	jonas start
	jclient samplemdb.MdbClient
	jonas stop
	
You may want to execute this example with the MOM JMS that is running in a
separate JVM. For this, you must first :
 1) Set the property jonas.service.jms.collocated to false in jonas.properties 
 2) Run the standalone Jms Server : JmsServer &

