|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Getting RC 2034 when using MQGMO_MSG_UNDER_CURSOR |
« View previous topic :: View next topic » |
Author |
Message
|
kirani |
Posted: Mon Jul 28, 2003 3:37 pm Post subject: Getting RC 2034 when using MQGMO_MSG_UNDER_CURSOR |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I am trying to get (remove) multiple messages from the queue from a specific position. First I am browsing the queue to reach that message position and then I'm specifying MQGMO_MSG_UNDER_CURSOR to remove that specific message using MQGET call. This works fine for single message, but fails when trying to remove multiple messages, as now the cursor is pointing to the message which has been removed from the queue. I get reason code 2034 for the next MQGET call.
Is there a way to advance my cursor to the next message on the queue within the loop?
TIA. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
kirani |
Posted: Mon Jul 28, 2003 4:11 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
The problem is solved.
I had to call MQGET once again to move the cursor to next message on the queue using MQGMO_BROWSE_NEXT option. Is this is the way to do it? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
jonevu |
Posted: Tue Aug 05, 2003 8:04 am Post subject: |
|
|
Newbie
Joined: 30 Jul 2003 Posts: 3 Location: Chicago, Illinois
|
Also, in your loop logic, make sure the correlation ID and message ID are reset to empty values following a successful pass. _________________ Certified MQ Series Expert
Certified C++ Expert
datasensellc@attglobal.net |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|