Posted: Fri Jun 07, 2002 1:36 am Post subject: How to extract the 'Reason' field from deadletter Q message?
Apprentice
Joined: 24 May 2002 Posts: 25
Hi,
I'm retrieving the messages that have arrived in the deadletter queue. I have separated the dead letter handler and the message data. I need to extract the 'Reason' field from the dead letter header of the message...How do I get it through java ????
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
Well, if you actually have the Dead Letter Header (MQDLH) separated out, then you've already taken care of the hard part.
There should be a variable in the DLH object called "reason" which contains the reason why the message ended up on the dead letter queue.
This link describes the contents of the Dead Letter Header:
http://www-3.ibm.com/software/ts/mqseries/library/manualsa/csqzak05/csqzak0513.htm#HDRMQDLH _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
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