This content has been marked as final. Show 1 reply
Replication is controlled by an interceptor added to the bean container. The replication happens when the invocation on the bean returns through the interceptor. The entire bean state is replicated. You can gain some control by adding a method
public boolean isModified()
to your bean. If there, the interceptor will check it and won't replicate if it returns false.
For EJB3, to get that optimization, besides adding the method you have to make your bean implement interface org.jboss.ejb3.cache.Optimized (which simply declares the isModified() method.)