#
#
# Multithreaded test 
# contribution from Nicolas JULE
#

Scenario:
---------

Setup:
------

o A database:
	- MySQL
	- PostgreSQL

Database Setup:
---------------

The test expects:
o a database named javatest
o a user of login "mojo" and password "jojo"
o tables are in bases.sql files

Database configuration are stored in properties file (spy.properties) 
which contains the following properties:
o realdriver - Name of the JDBC driver
o url - URL to connect to the data base

Compilation:
------------

Go to output/dist/test/multithreaded

Type

   $ ant compile

to compile the test

Run the test:
----------------
o To run the test, first check that only RMI protocol will be
activated (in the ../../config/carol.properties, carol.rmi.activated
should be set to jrmp); then type 

   $ rmiregistry -J-classpath -Jjotm.jar:jotm_jrmp_stubs.jar -J-Djava.security.policy=../config/java.policy &

to start a RMI registry on default port (i.e. 1099).

o Set the classpath

   $ export CLASSPATH=../../lib/ow_util_log_wrp_log4j.jar:../../lib/jta-spec1_0_1.jar:../../lib/jotm.jar:../../lib/jotm_jrmp_stubs.jar:../../config:.:../../lib/xapool.jar:.:../../lib/commons-logging.jar:../../lib/commons-logging-api.jar:../../lib/p6spy.jar:../../lib/connector-1_5.jar:../../lib/howl.jar:$JDBC_JARS

where  JDBC_JARS is the location of the JDBC driver jar file(s) you want to use.

o Modify ../../config/spy.properties to setup your jdbc properties

o Start the test

   $ java Connect 

Usage:
------

   $ java Connect

Enjoy!

