[jboss-user] [Clustering/JBoss] - Re: Stateless Session Bean Replication

bstansberry@jboss.com do-not-reply at jboss.com
Tue Nov 13 10:25:14 EST 2007


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.)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104177#4104177

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104177



More information about the jboss-user mailing list