2 Replies Latest reply on Feb 3, 2011 2:57 AM by dherrero

    JBoss 5.1 joined to several clusters at same time

    dherrero

      Hi.

      My system used Jbos 4.0.2. It needs to create several clusters (ClusterPartition class) to detect fails in other nodes. Each cluster has a different jgroups configuration. Some of them uses tcp, other udp, etc. In jboss 4.0.2 I can setup the channel stack config using the attribute PartitionConfig for the bean org.jboss.ha.framework.server.ClusterPartition. This class doesnt allow to setup this configuration in Jboss 5.1. I read I ve to add those custom jgroups configurations to jgroups-channelfactory-stacks.xml. Ok, done. I know I can select the stack using -g option, but It would apply to all my clusters. How can I setup a different channel stack for each cluster?

      Thanks¡¡

        • 1. JBoss 5.1 joined to several clusters at same time
          pferraro

          In JBoss 5.1, ClusterPartition uses the same stack as the JBoss Cache indicated by the ClusterPartition's cacheHandler.

          So, to create multiple ClusterPartition instances - first you'll need to create JBoss Cache configurations for every channel stack you need.  Then, for each ClusterPartition instance, create a separate HAPartitionCacheHandler bean that references the corresponding cache that uses the desired stack.

          Did that make sense?

          1 of 1 people found this helpful
          • 2. JBoss 5.1 joined to several clusters at same time
            dherrero

            Thanks Paul.

            What you say is exactly what I did and works correctly.