12.2. Create a New RemoteCacheManager
Use the following configuration to declaratively configure a new
RemoteCacheManager
:
Properties props = new Properties(); props.put("infinispan.client.hotrod.server_list", "127.0.0.1:11222"); RemoteCacheManager manager = new RemoteCacheManager(props); RemoteCache defaultCache = manager.getCache();
Note
To learn more about using
Hot Rod
with JBoss Data Grid, refer to the Developer Guide's Hot Rod Chapter.