[jboss-user] [JBossCache] - Re: Replication doesn't work even with the sample code provi

malek256 do-not-reply at jboss.com
Wed Oct 11 15:07:14 EDT 2006


We note that replication occurs if you remove and then perform a putObject, but not otherwise 

That is, the following pseudo-code illustrates a pattern which returns the modified data

MyObject myObject = new MyObject();
myObject.SetValue("0");

cache1_.putObject("/key/", myObject);
myObject = cache1_.getObject("/key/");
myObject.SetValue("1");

myObject2 = cache2_.getObject("/key/");
// myObject2.GetValue returns 0

cache1_.remove("/key/");
cache1_.putObject("/key/", myObject);

myObject2 = cache2_.getObject("/key/");
// myObject2.GetValue returns 1




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

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



More information about the jboss-user mailing list