ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Backout Count

Post new topic  Reply to topic
 Backout Count « View previous topic :: View next topic » 
Author Message
vmurali_au
PostPosted: Fri Apr 09, 2004 4:01 am    Post subject: Backout Count Reply with quote

Voyager

Joined: 26 Mar 2004
Posts: 76

In our application, a listener processes the messages in the Queue Q1 and makes a database updation, if it is successful then removes the message from the Queue Q1.

If the DB cannot be updated at the time due to Invalid message/DB connection or resource not available, then the message is backedout & putback into the Queue. The listener then sleeps for 30 seconds and tries it again. If the above process is unsuccessful for 3 times, then the message is deleted from the Queue Q1.

As you can see, when the listener sleeps after backout due to this message, the processing of other messages at the back of the queue are also delayed.

We are thinking of putting the message at the back of the queue (thus we can remove the sleep used previously), so the other messages can be processed during this time.

The problem is, we want to increment a field in the message (as a counter), each time we put the message back into the queue, and query it, if it is greater than 3, then the message can be put into some other error queue. Is there any attribute available in the message, which we can use in this regard?

In the new case,As we are backing out & putting the message at back (at the back of the queue) the backout count is ignored (during the MQPUT call), So i guess we can't use the backout count in this case. What other field can we use?
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri Apr 09, 2004 4:56 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

It sounds to me like you want to use the BOTHRESH and BOQNAME of the queue along with the BackoutCount of the MQMD. There are a couple of programs at:

http://www.developer.ibm.com/tech/sampmq.html

Look for backout.c, backout.java.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Backout Count
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.