20.13.2.2. JGroups Broadcast Group
You can use JGroups to broadcast by specifying two attributes namely
jgroups-stack and jgroups-channel. The example shown below defines a JGroups broadcast group:
<broadcast-groups>
<broadcast-group name="bg-group1">
<jgroups-stack>udp</jgroups-stack>
<jgroups-channel>udp</jgroups-channel>
<broadcast-period>2000</broadcast-period>
<connector-ref>netty</connector-ref>
</broadcast-group>
</broadcast-groups>
The JGroups broadcast group definition uses two main attributes:
jgroups-stackattribute: This denotes the name of a stack defined in theorg.jboss.as.clustering.jgroupssubsystemjgroups-channelattribute: This denotes the channel which JGroups channels connect to for broadcasting