20.13.2. Broadcast Groups
broadcast-groupselement of server configuration files (
domain.xml). A single HornetQ server can have many broadcast groups. You can define either a User Datagram Protocol (UDP) or a JGroup broadcast group.
184.108.40.206. User Datagram Protocol (UDP) Broadcast Group
<broadcast-groups> <broadcast-group name="my-broadcast-group"> <local-bind-address>172.16.9.3</local-bind-address> <local-bind-port>5432</local-bind-port> <group-address>220.127.116.11</group-address> <group-port>9876</group-port> <broadcast-period>2000</broadcast-period> <connector-ref>netty</connector-ref> </broadcast-group> </broadcast-groups>
<broadcast-groups> <broadcast-group name="my-broadcast-group"> <socket-binding>messaging-group</socket-binding> <broadcast-period>2000</broadcast-period> <connector-ref>netty</connector-ref> </broadcast-group> </broadcast-groups>
Table 20.11. UDP Broadcast Group Parameters
|name attribute|| |
Denotes the name of each broadcast group in a server. Each broadcast group must have a unique name.
[Deprecated] This is a UDP specific attribute and specifies the local bind address which the datagram packet binds to. You must set this property to define the interface which you wish to use for your broadcasts. If this property is not specified then the socket binds to a wildcard address (a random kernel generated address).
[Deprecated] This is a UDP specific attribute and is used to specify a local port which the datagram socket binds to. A default value of "-1" specifies an anonymous port to be used.
[Deprecated] This is a multicast address specific to UDP where messages are broadcast. This IP address has a range of 18.104.22.168 to 22.214.171.124, inclusive. The IP address 224.0.0 is reserved and can not be used.
[Deprecated] This denotes the UDP port number for broadcasting.
This denotes the broadcast group socket binding
This parameter specifies the time between two broadcasts (milliseconds). It is optional.
This refers to the connector which will be broadcasted.