I have an object i am storing in infinispan. It has several fields that can be easily replicated to another server but a couple of fields that are server only. Specifically these are change listeners on the object. The problem is when the second replicated instance comes up or the data changes, it serializes across null for the change listeners and wipes them out since the field is transient. What I am seeking is if there is a way, perhaps with an annotation, to tell infinispan to not replicate one field of the object: i.e.:
class A { String data;
int value;
@InfinispanNoSerialize
List<Object> listeners;
}
Thanks in advance.
Have you looked at http://infinispan.org/docs/6.0.x/user_guide/user_guide.html#_plugging_infinispan_with_user_defined_externalizers ?
Vladimir