I have a static list (java.util.List) inside a class that I am trying to replicate. All other fields in the class get replicated except for the static List. The user guide for Release 2.0 says that by default all the static fields get replicated. Is there anything I am missing?
Thanks
Here is my class..
import java.util.ArrayList;
import java.util.List;
@org.jboss.cache.pojo.annotation.Replicable
public class Student {
private String name ;
private int age ;
private Address addr ;
/* someList is not replicated to other nodes in the Cluster */
public static List someList = new ArrayList();
}
Sorry, the documentation is wrong (out of date). I am in the process of updating it, should see that fixed late next week.
Static field replication is planned for 2.1.0:
http://jira.jboss.com/jira/browse/JBCACHE-726