Highlighted

DataService Destination Clustering is not working

dam_C

05-08-2009

Hi All ,

We are trying to get clustering configured for our application so that DataService's Destination keep serving  the cleint in case of any server failure .  We are using F5  hardware load balancer.

We have set up a default-cluster, using tcp and  while creating DataService Destination we are setting cluster ID  as follows

                                       ..

1)

                                       .....

            DataNetworkSettings ns = new DataNetworkSettings();

            ns.setPagingEnabled("false");

            ns.setClusterId("default-cluster")

                        ....

2) service-config.xml

     <clusters>
        <cluster id="default-cluster" properties="jgroups-tcp.xml" url-load-balancing="false" />
      </clusters>

3) jgroup-tcp.xml - First

    <TCP bind_addr="114.19.8.161"  start_port="7800" loopback="true" enable_diagnostics="true"/>
    <TCPPING timeout="3000" initial_hosts="114.19.8.226[7800]" port_range="1" num_initial_members="1"/>
    <MERGE2 min_interval="10000" max_interval="20000"/>

3) jgroup-tcp.xml - Seond

    <TCP bind_addr="114.19.8.226"  start_port="7800" loopback="true" enable_diagnostics="true"/>
     <TCPPING timeout="3000" initial_hosts="114.19.8.161[7800]" port_range="1" num_initial_members="1"/>
     <MERGE2 min_interval="10000" max_interval="20000"/>

I am using Jboss4.2.2 GA and LCDS2.6.1and we have licenced version of LCDS

I am getting following message on JBoss console : -

04:26:15,296 INFO  [STDOUT] [Flex]Cluster node from address 114.19.8.161:7800 joined the cluster for default-cluster
04:26:15,718 INFO  [JBossCacheManager] Starting JBossManager
04:26:15,734 INFO  [TreeCache] received the state (size=1024 bytes)
04:26:15,750 INFO  [TreeCache] received the state (size=8192 bytes)
04:26:15,765 ERROR [TreeCache] failed setting transient state
java.lang.ClassCastException: org.jboss.cache.loader.NodeData
        at org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateTransientState(StateTransferIntegrator_140.java:210)
        at org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateTransientState(StateTransferIntegrator_140.java:100)

Am I  missing anything  ?

During the testing when I bring down one of the jboss server, It immediately throws Destination  does not exist error

I will appeciate any help on this .

Thanks

Dharmendra