Client Reconnection explains how to configure the client to re-connect to the server.
But while the server is down, if the client tries to post a message what would be the behavior?
1 of 1 people found this helpful
As stated on the manual, reattach is for transient failures.
You need to configure retry options on the ConnectionFactory.
- When a permanent failure is detected the session will be failed over (while the backup will be activated).
- Case you don't have a backup node, the session will be closed and you won't be able to use the session any more. you can also use the listeners to detect failures.
Thanks for the reply!