Author |
Message
|
N |
Posted: Thu Oct 11, 2007 10:44 pm Post subject: How to discard MQ message in WMB flow |
|
|
Acolyte
Joined: 21 Jul 2007 Posts: 64
|
Hi Guys,
Can share with me how to discard message in WMB flow.
For eg:
IN -> CHECK NODE -> MAPPING NODE ->OUT
If the message going to discard during CHECK NODE, how am i going to handle this. THANKS |
|
Back to top |
|
 |
asudhakar |
Posted: Thu Oct 11, 2007 10:50 pm Post subject: Re: How to discard MQ message in WMB flow |
|
|
 Centurion
Joined: 12 May 2007 Posts: 116 Location: Bangalore
|
N wrote: |
Hi Guys,
Can share with me how to discard message in WMB flow.
For eg:
IN -> CHECK NODE -> MAPPING NODE ->OUT
If the message going to discard during CHECK NODE, how am i going to handle this. THANKS |
What r u checking in Check node (domain / any thing)
Give brief description abt MsgFlow. _________________ WebSphere MQ, MB Support and Admin |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 11, 2007 11:54 pm Post subject: Re: How to discard MQ message in WMB flow |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
N wrote: |
Hi Guys,
Can share with me how to discard message in WMB flow.
For eg:
IN -> CHECK NODE -> MAPPING NODE ->OUT
If the message going to discard during CHECK NODE, how am i going to handle this. THANKS |
If you really mean discard, wire a compute node that doesn't produce an output tree...
...seems a bit harsh though. Wouldn't you want to put the failing message somewhere for investigation? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
N |
Posted: Sat Oct 13, 2007 3:41 pm Post subject: |
|
|
Acolyte
Joined: 21 Jul 2007 Posts: 64
|
Hi asudhakar,
Thanks for your reply. There are lot of message coming from Input Node. I will check on the BLOB message using substring to determine the type of message. If is wrong message, i intend to set InputRoot.MRM = null. However this is not the right way to do this. Please guide. Thanks
Hi Vitor,
Yes. I can put the failed message in a log file for investigation. However there will be lots of wrong message coming to my flow. At the end of the day, the log file is going to take up a lot of space. |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Oct 13, 2007 5:29 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
return false; _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Sun Oct 14, 2007 12:41 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
N wrote: |
Yes. I can put the failed message in a log file for investigation. However there will be lots of wrong message coming to my flow. At the end of the day, the log file is going to take up a lot of space. |
- disc space is cheap
- and if these messages can be so easily discarded, why send them in the first place?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
N |
Posted: Mon Oct 15, 2007 3:57 am Post subject: |
|
|
Acolyte
Joined: 21 Jul 2007 Posts: 64
|
Hi,
Bcoz the MQInput Node is 'OPEN' for a few sender. I need to filter those junk message before send for processing.
Meanwhile, return false is working !!! Thanks Jeff... BRAVO!!! |
|
Back to top |
|
 |
|