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 » IBM MQ Java / JMS » Poison message handling

Post new topic  Reply to topic
 Poison message handling « View previous topic :: View next topic » 
Author Message
dwitherspoon
PostPosted: Tue Dec 09, 2003 5:59 am    Post subject: Poison message handling Reply with quote

Acolyte

Joined: 09 Dec 2003
Posts: 59

Is JMS supposed to do poison message handling for me?

I was reading in http://www-3.ibm.com/software/integration/mqfamily/library/manualsa/csqzaw06/csqzaw066q.htm#Header_256 where it describes how when the backout threshold is reached the message gets moved to the configured backout queue.

Is JMS supposed to be doing that for my JMS client application? I have found some code that does backout processing of poison messages, but this really seems like code that would be in IBM's implemtation of JMS.

But what we're seeing is that a malformed message stays on the queue forever...it never gets backed out and moved off the queue.
_________________
Good...Fast...Cheap. Choose any two.
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Dec 09, 2003 6:59 am    Post subject: Reply with quote

Jedi Knight

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

The answer is that it depends. If you are doing simple (ie non-MDB) work, then the message doesn't get moved. However, if you have set up a ListenerPort, the message will get redelivered the backout number of times and then get moved to the backout queue.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
dwitherspoon
PostPosted: Tue Dec 09, 2003 7:28 am    Post subject: Reply with quote

Acolyte

Joined: 09 Dec 2003
Posts: 59

No, this is not a MessageDrivenBean application...I'm just using QueueConnection, QueueSession and a QueueReceiver. And I'm just doing a receive call when the exception occurs.

So do I need to handle moving malformed messages out of the way? If so, this kind of sucks. We want this to be a pure JMS application, but JMS cannot even receive the message to get it off of the queue, and that forces me to write MQI code to get rid of it.

Any ideas? Thanks much for your reply!!
_________________
Good...Fast...Cheap. Choose any two.
Back to top
View user's profile Send private message
dwitherspoon
PostPosted: Tue Dec 09, 2003 11:19 am    Post subject: Reply with quote

Acolyte

Joined: 09 Dec 2003
Posts: 59

Actually, this has gotten quite a bit contact admin. I have my JMS application, which uses a selector to pull messages of interest off the queue. When it hits a malformed message, I'd like to be able to move it to the backout queue. I have some code that takes the first message on the queue and moves that to the backout queue. But because I'm using a selector, I don't know which message it is that is causing the problem. It could be number 1, or it could be number 351.

And because JMS cannot even do the receive, I have no information about the message on the queue that is malformed...no message ID, no correlation ID, nothing I can use through the MQ base classes to locate and move that message.

Arrghh!
_________________
Good...Fast...Cheap. Choose any two.
Back to top
View user's profile Send private message
dwitherspoon
PostPosted: Wed Dec 31, 2003 7:27 am    Post subject: IBM has accepted this a bug in their JMS Provider Reply with quote

Acolyte

Joined: 09 Dec 2003
Posts: 59

Just for anybody following this one, I have successfully navigated the waters of IBM tech support, and they have accepted this as a bug in the JMS provider. In short, if there is a problem with the header of a message, the JMS provider has to go through the backout processing configured for the queue. They agreed that it was unacceptable to leave the message on the queue with no way for the JMS client to clear or move the message (which it shouldn't have to do anyway).

Thanks to Ron for helping out with this one!
_________________
Good...Fast...Cheap. Choose any two.
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 » IBM MQ Java / JMS » Poison message handling
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.