-
1. Re: HornetQJMSConnectionFactory: Lookup Queue Instances from JGroups (in Spring)
jbertram Jul 1, 2013 5:59 PM (in response to mautner.adam)You want use the constructor of org.hornetq.jms.client.HornetQJMSConnectionFactory that takes a org.hornetq.api.core.DiscoveryGroupConfiguration. Read about it here.
-
2. Re: HornetQJMSConnectionFactory: Lookup Queue Instances from JGroups (in Spring)
mautner.adam Jul 1, 2013 6:12 PM (in response to jbertram)Bertram,
Thank you for the quick reply, I will look up the documentation.
Regards,
Adam
-
3. Re: HornetQJMSConnectionFactory: Lookup Queue Instances from JGroups (in Spring)
mautner.adam Jul 1, 2013 6:28 PM (in response to mautner.adam)Bertram,
I have looked up the doc. It looks good (I found the JGroupsBroadcastGroupConfiguration). There is one thing I don't understand:
Doc says:
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?
Regards,
Adam
-
4. Re: HornetQJMSConnectionFactory: Lookup Queue Instances from JGroups (in Spring)
jbertram Jul 1, 2013 6:56 PM (in response to mautner.adam)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:
- org.hornetq.api.core.JGroupsBroadcastGroupConfiguration
- org.hornetq.api.core.UDPBroadcastGroupConfiguration
-
5. Re: HornetQJMSConnectionFactory: Lookup Queue Instances from JGroups (in Spring)
mautner.adam Jul 2, 2013 5:09 PM (in response to jbertram)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.
Thank you,
Ada,