[jboss-dev-forums] [Design of JBossCache] - Re: Gravitation and POJO Cache

jason.greene@jboss.com do-not-reply at jboss.com
Fri Jun 22 00:31:54 EDT 2007


"jason.greene at jboss.com" wrote : I would need to handle puts as well, since I can't predict how someone is using POJO Cache. They could retrieve an object, wait for some period time (during which the data has been gravitated to another node), then trigger an update which would fail.
  | 

Although, in order to solve another problem, I have to do a read before almost every put to validate that the pojo hasn't been detached by a remote node (see JBCACHE-1057). So just forcing gravitation on reads will work, although the behavior and performance will match autoDataGravitation=true.

I guess a strong reason against requiring autoDataGravitation is that like in your case, you might want to mix cache and pojocache calls in the same cache instance.

-Jason

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056719#4056719

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056719



More information about the jboss-dev-forums mailing list