Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is the message deleted ?

Status
Not open for further replies.

Ern1e

Programmer
Sep 20, 2006
5
GB
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


 
Pleeease, somebody give me some clues !

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top