This content has been marked as final.
Show 1 reply
-
1. Re: Stateless Session Bean Replication
brian.stansberry Nov 13, 2007 10:25 AM (in response to msauer)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.)