Did you try removing both startupMaxConnectAttempts and maxConnectAttempts?
>From memory, I believe maxConnectAttempts will be used if
startupMaxConnectAttempts isn't set, so removing startupMaxConnectAttempts
by itself wouldn't be expected to solve the problem.
Tim
On Sun, Dec 16, 2018, 3:31 AM
Tim Bain wrote
> Your use of maxReconnectAttempts=2 seems inconsistent with your stated
> goal
> of being able to connect to a broker that's not available when the
> connection factory is created. What are you trying to accomplish with that
> setting, and if you remove it do you get the expected be