globalConfig.transport().defaultTransport().addProperty("configurationFile", jgrousConfigFile);
EmbeddedCacheManager manager = new DefaultCacheManager(globalConfig.build());
ConfigurationBuilder cacheConfig = new ConfigurationBuilder();
cacheConfig.transaction().lockingMode(LockingMode.PESSIMISTIC);
cacheConfig.invocationBatching().enable();
cacheConfig.jmxStatistics().disable();
cacheConfig.clustering().cacheMode(CacheMode.REPL_SYNC);
manager.defineConfiguration(CACHE_NAME, cacheConfig.build());
Cache<String, String> replicatedCache = manager.getCache(CACHE_NAME);