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 IBM MQ Support » What are poison messages

Post new topic  Reply to topic
 What are poison messages « View previous topic :: View next topic » 
Author Message
wbimb
PostPosted: Thu Aug 24, 2006 10:59 pm    Post subject: What are poison messages Reply with quote

Centurion

Joined: 17 Aug 2006
Posts: 144

My understanding about poison messages


A message is send across and it the same message comes back and lands in the local Q..when more messages are put in the local q they are not processed becuase of this message...then the messages tht came back is poison messages

I dont know whether i am right..

HOW DO I TEST for poison messages
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Aug 25, 2006 12:39 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Essentially correct. A poision message is one that fails to be procesed by the reading application (data error, logic error, etc) and as a result is rolled back onto the queue. All other things being equal it will be the next message read off the queue, it fails again, is rolled back and thus the cycle continues with the newer messages piled up behind it.

The reading application should check BackoutCount on the MQMD when the message is read. If it's not zero then the message has been read off that many times before and it's a potentially poisoned message. Potentially because the previous error could have been caused by a transatory problem, like database locked, and processing may succeed this time. It's an application decision how many times a message will be retried.

There's an option on the queue called BackoutThreshold which you can use to hold the number of times the application should retry. Likewise there's BackoutQueue which can hold the queue name to dump the message into. Saves hard coding these values.

Note - despite these values being on the queue they are a convienience. The queue manager will not use them for anything, this process cannot be automated within MQ.

Well, not in this version. Maybe in v7.........
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri Aug 25, 2006 3:18 am    Post subject: Reply with quote

Jedi Knight

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

There are a couple of samples at:

http://www-304.ibm.com/jct09002c/isv/tech/sampmq.html

that show how to backout messages. You can search on backout.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
wbimb
PostPosted: Fri Aug 25, 2006 4:05 am    Post subject: Reply with quote

Centurion

Joined: 17 Aug 2006
Posts: 144

thanks everyone
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » What are poison messages
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.