2 Replies Latest reply on Jul 19, 2012 7:53 AM by galder.zamarreno

    cache configuration

    adityalele

      What is the difference between GlobalConfiguration and Configuration ?

       

      I am trying to create a clustered cache ... What configuration should I do for a replicated cache so that my data gets copied on all nodes.. As of now I am only able to create a cluster but my data is not getting replicated.. All the nodes are forming a cluster but still the caches behave independent.

       

      this is my config

       

      GlobalConfiguration gc = new GlobalConfigurationBuilder().transport().defaultTransport()

                                  .clusterName("qa-cluster")

                                  .addProperty("configurationFile", "jgroups-tcp.xml")

                                  .machineId("qa-machine").rackId("qa-rack")

                                  .build();

       

                                              DefaultCacheManager m = new DefaultCacheManager(gc);

                                              Cache <String, String> c= m.getCache();