This parameter denotes the maximum number of reconnection attempts made by a client if it is unable to connect to server. This flag will be used only if durable connections are enabled on the server. If set to a finite positive number, the client will try to revalidate the durable connection the specified number of times after which it will stop revalidating the connection and throw an exception. By default, this number is set to '-1'. This denotes that the client will try indefinitely to reconnect to the server.
5.3.1 Online Mode
To set MaxDurableConnectionReconnectAttempts in the metadata of a ConnectionFactory, (for example, primaryQCF), perform the following steps:
- Launch the admin studio, and make sure that FioranoMQ Server is running.
- Login to the server using FioranoMQ login and go to ConnectionFactories.
- Right-click on ConnectionFactories and click on the Edit option.
- Enter a valid value for MaxDurableConnectionReconnectAttempts and click OK.
- Save the Configuration.