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

Post new topic  Reply to topic
 Poison message « View previous topic :: View next topic » 
Author Message
WBI_user
PostPosted: Mon Oct 06, 2003 2:51 pm    Post subject: Poison message Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

According to the MQ using Java manual. If ConnectionConsumer is used, the message that exceed the backout threshold will automatically be re-queued to the back out queuespecified.
My understanding is ConnectionConsumer is an App Server function (ASF). If my JMS program is not using ASf and it uses the onMessage method to pass message to the application. How can poison message be handled ?
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Oct 07, 2003 11:15 am    Post subject: Reply with quote

Jedi Knight

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

I haven't tried it myself, but I would guess that you would throw an exception in your onMessage to get the message put back on the queue. It would then get redelivered to you. You'd need to keep an eye on the redelivery count and then eventually issue a send to move the message to another queue.

The gotchas will be that because you are using JMS, you don't have access to either the backout count or backout queue name so that you 'll know when to move the poison message.....
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
sc
PostPosted: Wed Oct 08, 2003 8:03 pm    Post subject: Reply with quote

Novice

Joined: 06 Sep 2003
Posts: 16

Actually you could use Message.getLongProperty("JMSXDeliveryCount") to find the backout count for specified message. Use another property name to find the value of backout queue name.
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Oct 09, 2003 9:06 am    Post subject: Reply with quote

Jedi Knight

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

Oops...I meant JMS doesn't have access to the queue's backout threshold (not backout count). Sorry about that.
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 » IBM MQ Java / JMS » Poison message
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.