I'm trying to write MQ client which will be resistant to unexpected situation. I have created client with client_acknowledge mode:
ISession session = conn.CreateSession(false, AcknowledgeMode.ClientAcknowledge);
In the XMS documentation there is information for CLIENT_ACKNOWLEDGE:
The application can acknowledge the receipt of each message individually, or it can receive a batch of messages and call the Acknowledge method only for the last message it receives. When the Acknowledge method is called all messages received since the last time the method was called are acknowledged.
The client fetches for example 10 messages from queue and writes them to DB.
The question is how to setup this mode with acknowledge every single message ( for ensuring message delivery )?