
This directory contains a test used to check that JOnAS is OK in
a multithreaded environment, with many concurrent clients running
above the same beans.
This test can be used also to check the scalability of the JOnAS server.

2 beans are used:

Manac		Entity bean with local interface.
	- Represents a bank account. Its balance must never be negative.

Manager		Stateful session bean, with remote interface.
	- manages the set of accounts.
	- used as "facade" to access local accounts.

Manac2		Idem as Manac except that the CMP is versus 2.x instead of 1.x

Manager2	Idem as Manager except that the managed beans are Manac2
		instead of Manac.

The client is actually a "junit" test program.
Each test case is a different scenario, with choosen parameters.

The list of parameters is :

accounts	nb of accounts used b the test
delay		nb of seconds waited inside each operation (default = 0)
loops		nb of operations
amount		amount withdrown from an account to another at each operation.
threads		nb of concurrent threads.

Each operation do the following: (See A_thread.java)

- choose 2 accounts to debit and 2 accounts to credit.
- make the withdraw
- check all accounts are still positive.

List of clients:
---------------
C_manac	F_mono		-> A_mono	-> A_manac
		F_mono_2	   "
		F_multi		-> A_multi	-> A_manac
		F_multi_2	   "
		F_stress	-> A_stress	-> A_manac
		F_stress_2	   "
		F_remove	-> A_remove
		F_remove_2	   "
		F_read		-> A_read
		F_read_2	-> A_read
