Application Overview:
--------------------
This application creates a number of thread that will do debit and credit operations 
on an account. If the client runs against a cluster of JOnAS, the load will be balanced 
between them.
It involves the different technics used in JOnAS:
- Entity Bean for BankAccount and BankOperation, persistent in a DataBase
- Session Bean to allow clients to create account and operations

Directory structure:
--------------------
src/		  beans to be loaded in JOnAS.
client/		  client java program.

Compiling this test:
-------------------

Use the Ant 1.5 build tool:
  ant install

Running this test:
-----------------
Prerequisite:
   - You must have configured a Database.
     The jndi name used in the bean is jdbc_1.
     See $JONAS_ROOT/doc/GettingStarted.html for more information.


1) run JOnAS server on each server
   The jonas.properties file must specify the following services :
      - registry,jmx,jtm,dbm,ejb
   The carol.properties file must specify that the used JNDI is cmi
      - carol.protocols=cmi
   See $JONAS_ROOT/doc/howto/Clustering.htlm for more information.

	jonas start

2) Load the clusterDemo.jar on each server
   jonas admin -a clusterDemo.jar

3) Launch the client 
   jclient -cp $JONAS_BASE/ejbjars/clusterDemo.jar org.objectweb.clusterDemo.BankClient -l 10 -c 10

    - The -l option specifies the number of loop each client thread does (in one loop, one debit and 
      one credit operations are realized
    - The -c option specifies the number of client thread

4) Stop the jonas server on every servers
	jonas stop
