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 » WebSphere Message Broker (ACE) Support » Discarding messages

Post new topic  Reply to topic
 Discarding messages « View previous topic :: View next topic » 
Author Message
Ajit
PostPosted: Fri Jul 09, 2004 9:27 am    Post subject: Discarding messages Reply with quote

Newbie

Joined: 14 Apr 2004
Posts: 8

I have to discard the message if the queue to which its putting messsage is full.

I have a connector that goes into a compute node (which make the message non-expiry and persistent) and then the message is put onto a queue. Now, if that particular queue is already full then I dont want the message to be backed out. I simply want the message to be discarded.

To achieve this I am connecting the Failure terminal of the compute node (which make the message non-expiry and persistent) to another compute node that does nothing (somply copies the message as it is). None of the terminals of this new compute node are connected anywhere. Still I am not able to achieve the purpose.

Could anybody please suggest any solution to this?

TIA,
Ajit.
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Fri Jul 09, 2004 9:50 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Ajit wrote:

To achieve this I am connecting the Failure terminal of the compute node (which make the message non-expiry and persistent) to another compute node that does nothing (somply copies the message as it is). None of the terminals of this new compute node are connected anywhere. Still I am not able to achieve the purpose.

What happens when you do this? Does the message goes to the "Backout" queue?
MQPUT error occurs in MQOutput node (not in the Compute node), so you should connect these nodes to the failure terminal of your MQOutput node. Try adding a Trace node instead or put return false staement in your new compute node. But, this will discard the message regardless of the error occured in the MQOutput node. You might want to design "Error Handler" that will discard the message if the MQ reason code is 2053 (MQRC_Q_FULL).
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
jfluitsm
PostPosted: Sun Jul 11, 2004 6:55 am    Post subject: Reply with quote

Disciple

Joined: 24 Feb 2002
Posts: 160
Location: The Netherlands

You can also place a TryCatch node before the MQPut node.
When you don't wire the catch-terminal all failed messages will be discarded, however by using filter or compute nodes you can decided when to fail (throw node or throw statement) and when to discard the message.
_________________
Jan Fluitsma

IBM Certified Solution Designer WebSphere MQ V6
IBM Certified Solution Developer WebSphere Message Broker V6
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Discarding 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.