I need to setup a cluster in my network using WildFly 8.1. My requirement is to use TCP (instead of UDP) for transport. I wonder if it's sufficient to switch to default-stack="tcp" in the JGroups subystem. From the wiki/examples, I can see that most of the time TCPPING is used instead, specifying the host name address statically.
Will it work too also with basic TCP ? (I wonder how JGroups will find other cluster members without multicast and without also a static list of cluster address)
The default TCP stack in WildFly still uses UDP multicasting in MPING. For a pure-TCP stack, swap out MPING with either TCPPING or TCPGOSSIP or one of the shared resource based discovery protocols (e.g. JDBC_PING, S3_PING, etc.).
More on that here: