[jboss-dev-forums] [JBoss Cache Development] - Re: [jboss eap 5.1.2] node's invalidation cache cleared by each other

Bond Chan do-not-reply at jboss.com
Thu Jul 11 05:59:26 EDT 2013


Bond Chan [https://community.jboss.org/people/bondchan921] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/827511#827511

--------------------------------------------------------------
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
[https://community.jboss.org/message/827511#827511]

Start a new discussion in JBoss Cache Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2056]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130711/6fb2e599/attachment.html 


More information about the jboss-dev-forums mailing list