Hi all, As I understand, JbossCache accomplished the clustering and replication by using JGroups. JGroups in the other hand uses ip multicasting to multicast a message to all the nodes that register to a multicast address. The default configure for ClusterConfig uses UDP, in the JGroups documentation it says: anonymous wrote : TCP is a replacement of UDP as bottom layer in cases where IP Multicast based on UDP is not desired. This may | be the case when operating over a WAN, where routers will discard IP MCAST. As a rule of thumb UDP is used as | transport for LANs, whereas TCP is used for WANs. So if I want to have my cache replicated over different server via internet (not just in LAN) I would have configure the JbossCache to use TCP protocol right? I tried to do that, but it doesn't seem to work.... could anybody help?
Before: | <attribute name="ClusterConfig"> | <config> | <UDP mcast_addr="228.1.2.5" mcast_port="45577" | ip_ttl="64" ip_mcast="true" | mcast_send_buf_size="150000" mcast_recv_buf_size="80000" | ucast_send_buf_size="150000" ucast_recv_buf_size="80000" | loopback="false"/>--> | <PING timeout="2000" num_initial_members="3" | up_thread="false" down_thread="false"/>--> | ... | ... | Now: | change to | | <attribute name="ClusterConfig"> | <config> | <TCP start_port="7800"/> | <PING timeout="3000" num_initial_members="3" /> | ... | ... | or | | <attribute name="ClusterConfig"> | <config> | <TCP start_port="7800"/> | <TCPPING initial_hosts="localhost[7800]" | port_range="5" timeout="3000" num_initial_members="3" | up_thread="true" down_thread="true"/> | ... | ... | | but does not work ... | BTW, how does this multicast works, do I need a host or server to bind to or something? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047420#4047420 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047420 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
