4 Replies Latest reply on Sep 21, 2005 11:44 AM by Bela Ban

    how to access jboss cache from client code

    nithin nambiar Newbie

      hi,
      i have used jboss cache to implement the cache in standalone mode.
      i want to access the cache from my client code to retrieve and update the cache. can anybody explain me how to access the cache from a remote client.
      i have created the cache in a similar way.

      TreeCache tree = new TreeCache();
      tree.setClusterName("default-cluster");
      tree.setClusterProperties("default.xml");
      tree.setCacheMode(TreeCache.REPL_SYNC);
      tree.startService();
      tree.put("/a/b/c", "name", "john");