Thank you for the quick reply, I will look up the documentation.
I have looked up the doc. It looks good (I found the JGroupsBroadcastGroupConfiguration). There is one thing I don't understand:
ServerLocator factory = HornetQClient.createServerLocatorWithHA(new DiscoveryGroupConfiguration(groupAddress, groupPort,
new UDPBroadcastGroupConfiguration(groupAddress, groupPort, null, -1))));
But DiscoveryGroupConfiguration cosntructor does not take as an UDPBroadcastGroupConfiguration parameter:
public DiscoveryGroupConfiguration(final String name,
final String localBindAddress,
final String groupAddress,
final int groupPort,
final long refreshTimeout,
final long discoveryInitialWaitTimeout)
public DiscoveryGroupConfiguration(final String groupAddress,
final int groupPort)
What am I missing?
My guess is that you're using a version of HornetQ prior to 2.3.0.Final.
Also, please note that you don't have to use JGroups here. There are two implementations of org.hornetq.api.core.BroadcastEndpointFactoryConfiguration:
I am using HornetQ 2.3.0 standalone, but it seems, I have picked an earlier version for client from Maven. (I will double check this)
I plan to use Amazon Web Services, where UDP multicast is not allowed, I will have to use JGroups with S3 Ping.