In the /server/all/deploy directory there is a cluster-service.xml file with a
section that configures the JGroups protocol stack. It has a UDP element with
attributes mcast_addr and mcast_port (multicast address and port). If different
machines on the network have the same mcast_addr and mcast_port, your JGroups
channel will see messages from the other machines. JGroups will see that the
packets are intended for a cluster with a different name and will discard them,
but it will complain about it. It's best to use a different mcast_addr and
mcast_port for machines that are not meant to be part of the same cluster.
When I was working in a team environment we generally gave each developer their
own port number to use.
This can be a bit of a pain if you have to edit the cluster-service.xml file to
give each developer their own port. I've used system property substitution to
manage this in 4.0.1SP1 and later; haven't tried it in 4.0.1. Looks like this:
<UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}
mcast_port="${jboss.partition.udpPort:45566} ...
Then in your command line you use -D to set the jboss.partition.udpGroup and
udpPort. Beginning in 4.0.3 you can use a -u command line switch to set the
udpGroup.
We then set an environment variable for the port on each machine and passed the
values of the environment variables through the command line.
Beginning with 4.0.1SP1 there is also a tc5-cluster-service.xml file that
creates a JGroups channel used for http session replication; a similar
procedure needs to be used for it as well.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914625#3914625
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914625
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user