Multiple subnets: make sure IP multicasting is enabled and set the ip_ttl high enough
WANs: use a TCP-based configuration.
Check out the docs at jgroups.org for details on how to do that.
Thanks for the pointer. I knew JBoss used JGroups, but I didn't realize how much was at your site.