[jboss-user] [JBoss Cache: Core Edition] - Re: Cluster config: Channel per Cache instance?

bstansberry@jboss.com do-not-reply at jboss.com
Thu Mar 19 19:05:13 EDT 2009


If you are creating separate JBC instances for entities/collections/timestamps you need them to have separate channels. Two possible options:

1) Use the same JBC for all 3 since they have the same configuration.
2) Use 3 separate JBC instances, but create a JGroups JChannelFactory and inject it into jbcRuntimeConfig and use it to create your channels. Add a singleton_name="udp" to your protocol stacks UDP protocol. That will give you a shared transport -- the 3 channels will share the transport protocol.

Hmm...bummer; the JChannelFactory class that ships with JGroups doesn't integrate very well with JBC.  There is a custom JChannelFactory impl inside JBoss AS that makes #2 workable, but outside the AS you're really stuck with #1.

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

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



More information about the jboss-user mailing list