JBoss.org Community Documentation

4.3.2. @Transient annotation

The @org.jboss.cache.annotation.Transient annotation is used to indicate that a field should not be replicable. This allows non-transient fields to be included in normal Java serialization output, but not when replicated by POJO Cache.

The following object will not replicate changes to resource.

@Replicable
public class Gadget
{
   // resource won't be replicated
   @Transient
   private Resource resource;
}