1 Reply Latest reply on Nov 3, 2006 7:00 AM by manik

    How do I programmatically get/put data from a cluster of sta

    tdenmark

      Hey all --

      I'm very new to JBoss Cache, but am excited by what I've read so far. We're interested in running a number of cache instances as a cluster of lightweight standalone cache JVM's (ie: NOT deployed as an MBean within a JBoss AS).

      My question is, after I've started up a cluster of standalone cache instances, how can I programatically access the cache from client code in a separate JVM that isn't a member of the cluster?

      I haven't been able to find any sample code or API's which allow me to do this other than the typical creation of a new TreeCache, calling startService() which places me in the cluster and replicates all data to me (wasteful, no?), and then get()'ing data from my new TreeCache instance which I would want to throw away immediately.

      Thanks.

        • 1. Re: How do I programmatically get/put data from a cluster of
          manik

          So far we only cater to every TreeCache instance being a member in the cluster as you mentioned.

          If you want a client-server model where the server is a data cluster, you could write a wrapper using your favourite remote access protocol (RMI, SOAP, whatever) on the server side which is a member of the data cluster.