1 Reply Latest reply on Feb 24, 2014 3:43 PM by Vladimir Blagojevic

    How to tell infinispan to leave transient fields alone when replicating?

    Robert Simmons Newbie

      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;


        List<Object> listeners;


      Thanks in advance.