With -u -m and -g you tell JBoss (JGroups) how to join a cluster.
If all three values the same (multicastaddress/port and partition name) two (or more) instances will build a cluster.
The multicast will used by JGroups to join in or part from a cluster if the instance is started or stopped.
During the lifetime controlinformations are send to check whether all members are alive.