|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Discarding messages |
« View previous topic :: View next topic » |
Author |
Message
|
Ajit |
Posted: Fri Jul 09, 2004 9:27 am Post subject: Discarding messages |
|
|
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 |
|
 |
kirani |
Posted: Fri Jul 09, 2004 9:50 am Post subject: |
|
|
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 |
|
 |
jfluitsm |
Posted: Sun Jul 11, 2004 6:55 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|