I've executing "testConcurrentPuts()" Junit test at org.jboss.test.cache.test.replicated.SyncTxUnitTestCase.
The transaction manager blocks Thread2 until Thread1 commit. This example works fine if both thread work over the same TreeCache instance but it doesn't block if Thread1 works over cache1 and Thread2 over cache2, even they belong to the same JGroup.
Does anyone know if is it possible to configure the Transaction Manager to block access over a distributed TreeCache instance?.
Thank in advance.
There is currently no way to configure the tm to block access over a distributed instance. However, in your scenario of concurrent commit, first one will time out and rollback, while the last one to commit should succeed.
Hope this help,