I join a zip file of my maven project which I run under Eclipse Helios.
As you will see, I use the default configuration of InfiniSpan.
I have tested with no L2 cache (all is good) and with Infinispan L2 cache (all is bad).
I have tested with Hsqldb and MySql databases (my tests encounters the same Locks apparently).
I have tested with 8 or 32 threads, and for 10 or 1000 requets per thread
(cf. lines 19-23 in src/test/java/infiniSpanTest/Runner.java).
Don't expect good performances ... I have added a lot of calls
to System.out.println() to show my threads running (and waiting).
Running the test :
------------------
You can run the Hsqldb test by :
starting an Hsqldb database with startHsqldb.bat
start the first node with InfiniSpanRun-1.launch
start the second node with InfiniSpanRun-2.launch
With a MySql database, you must obviously start this database
and you must empty tables before running the test nodes
(in case of a previous test didn't finished) :
start the first node with InfiniSpanRun-1.launch
start the second node with InfiniSpanRun-2.launch
With Hsqldb or MySql database configuration :
---------------------------------------------
If you want to test with MySql, you must update the following files :
src/main/java/META-INF/persistence.xml
change hibernate.dialect
conf/openejb.xml
change JdbcDriver
change JdbcUrl
change UserName
change Password
change ValidationQuery
With or without infinispan configuration :
------------------------------------------
If you want to test without Infinispan, you must update the following files :
src/main/java/META-INF/persistence.xml
uncomment the pêrsistence unit without cache
comment the persistence unit with cache