JBoss Community

Re: [jboss eap 5.1.2] node's invalidation cache cleared by each other

created by Bond Chan in JBoss Cache Development - View the full discussion

Are we using the jboss invalidation cluster cache correctly ?

 

-We using like this:

   int id = 500;

  Object value = cache.get("xx/yy/zz/500", "key");

  if(value == null){

    Object value = service.findById(500);

    cache.put("xx/yy/zz/50", "key", value);

}

 

--this issue now:

when one server call "cache.put("xx/yy", key, value)", this node on other server were invalidated, so for every node, only the one server having data.

 

--what we want

when one server call "cache.put("xx/yy", key, value)" for node xx/yy at the 1st time, this node on other server were not invalidated, so 1st time call is like load data for this node, no effect to other servers, after calls are updating this node, then other servers should invalidated

 

can we achieve this ?

Reply to this message by going to Community

Start a new discussion in JBoss Cache Development at Community