cache1_.stop();
cache2_.stop();
}
private PojoCache createCache(String name) throws Exception {
PojoCache tree = new PojoCache();
PropertyConfigurator config = new PropertyConfigurator(); // configure the cache through injection
// read in the replSync xml. Here we use synchronous mode replication.
config.configure(tree, "META-INF/replSync-service.xml");
// config.configure(tree, "META-INF/local-service.xml");
tree.setClusterName(name); // We can set a different cluster group.
tree.start(); // kick start the cache
return tree;
}