I have a program performing the following :
1. MQCONN
2. MQOPEN with MQOO_INPUT_AS_Q_DEF + MQOO_FAIL_IF_QUIESCING
3. MQBEGIN
4. MQGET with MQGMO_WAIT + MQGMO_FAIL_IF_QUIESCING + MQGMO_SYNCPOINT
If after the GET I simulate an unexpected error which causes the app to crash, the msg just read by the MQGET is deleted from the queue.
If alternatively after, the MQGET I perform an MQBACK, the msg is not deleted.
This is strange because it is commiting the deletion upon an error without me requesting it, I would have expected an automatic rollback here.
Am I doing something wrong ???
Many thanks
I am using VB6 with MQ 5.3
1. MQCONN
2. MQOPEN with MQOO_INPUT_AS_Q_DEF + MQOO_FAIL_IF_QUIESCING
3. MQBEGIN
4. MQGET with MQGMO_WAIT + MQGMO_FAIL_IF_QUIESCING + MQGMO_SYNCPOINT
If after the GET I simulate an unexpected error which causes the app to crash, the msg just read by the MQGET is deleted from the queue.
If alternatively after, the MQGET I perform an MQBACK, the msg is not deleted.
This is strange because it is commiting the deletion upon an error without me requesting it, I would have expected an automatic rollback here.
Am I doing something wrong ???
Many thanks
I am using VB6 with MQ 5.3