I recently received an answer on how I could force a reconnect from the client side (Client mode TCP connection factory and adapters).
But I also need to be able to close a connection from the server side (Server TCP connection factory and non-client-mode adapters).
I need to support a situation where, if some custom correlation logic goes out of sync, the connection is closed, and both sides react to this by resetting their counters etc.
So I need to:
- Force a TCP disconnect from server
- Force a TCP reconnect from client
- Have the server code discover that the connection was
closed from the client (is there an event or such?)
- Have the client code discover that the connection was closed from the server
(event?)