{
log.debug("Starting test");
TreeCache cache1 = createSyncReplicatedCache();
TreeCache cache2 = createSyncReplicatedCache();
log.debug("Created caches");
DummyTransactionManager mgr = DummyTransactionManager.getInstance();
int numLoops = 5, numPuts = 5;
log.debug("Starting " + numLoops + " loops");
for (int i = 0; i < numLoops; i++)
{
log.debug(" *** in loop " + i);
mgr.begin();
for (int j = 0; j < numPuts; j++)
{
cache1.put(Fqn.fromString("/profiler/node" + i), "key" + j, "value" + j);
}
log.debug("*** >> Out of put loop");
mgr.commit();
//cache2.get(Fqn.fromString("/profiler/node" + i));
}
destroyCache(cache1);
destroyCache(cache2);