6.3. 新しい RemoteCacheManager の作成

次の設定を用いて、新しい 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();

注記

JBoss Data Grid で Hot Rod を使用するための詳細については、『開発者ガイド』の Hot Rod の章を参照してください。