[id='custom-jgroups-relay-stacks_{context}']
= Custom JGroups RELAY2 stacks

You can add custom JGroups RELAY2 stacks to {brandname} clusters to use different transport properties for cross-site replication.
For example, the following configuration uses TCPPING instead of MPING for discovery and extends the default TCP stack:

[source,xml,options="nowrap",subs=attributes+]
----
include::xml/jgroups_custom_relay_extends.xml[]
----

[role="_additional-resources"]
.Additional resources
* link:{jgroups_docs}#RELAY2[JGroups RELAY2]
* link:{jgroups_docs}#Relay2Advanced[Relaying between multiple sites (RELAY2)]
