[jboss-user] [Clustering/JBoss] - Re: ejb3 SFSB with load-balancing but without replication

bstansberry@jboss.com do-not-reply at jboss.com
Wed Jan 24 10:31:10 EST 2007


You can set the CacheMode attribute in ejb3-clustered-sfsbcache-service.xml to LOCAL and that will disable replication.  That will affect all EJB3 SFSBs though.

The org.jboss.annotation.ejb3.cache.tree.CacheConfig annotation has a name attribute which allows you to specify the ObjectName of the JBoss Cache instance. You could set up a separate cache, similar to ejb3-clustered-sfsbcache-service.xml but with CacheMode LOCAL.  Then use the CacheConfig annotation on your beans to specify the use of that cache.

Haven't tried the 2nd paragraph, but should work.

Hmm.  You'd also need to remove the cache loader and the eviction configuration from the cache, or it will try to serialize your bean for passivation. You thus lose the ability to passivate your bean.

It's also possible to do standard serialization tricks like making certain field transient, etc.

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

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



More information about the jboss-user mailing list