Details
-
Bug
-
Resolution: Done
-
Trivial
-
None
-
7.2.1.Final
-
None
-
None
-
Documentation (Ref Guide, User Guide, etc.), Interactive Demo/Tutorial
Description
Code in documentation:
EmbeddedCacheManager cm = new DefaultCacheManager("infinispan.xml");
Cache<Object, Object> cache1 = cm.getCache("replSyncCache");
Cache<Object, Object> cache2 = cm.getCache("replAsyncCache");
Cache<Object, Object> cache3 = cm.getCache("invalidationSyncCache");
Code on GitHub
public static void main(String[] args) throws Exception {
boolean useXmlConfig = false;
String cache = "repl";
String nodeName = null;
for (String arg : args) {
switch (arg)
}
new Node(useXmlConfig, cache, nodeName).run();
}
...
...
public void run() throws IOException, InterruptedException {
EmbeddedCacheManager cacheManager = createCacheManager();
final Cache<String, String> cache = cacheManager.getCache(cacheName);