Topic
  • 4 replies
  • Latest Post - ‏2013-01-30T05:27:13Z by SystemAdmin
Srikanth_EAI
Srikanth_EAI
1 Post

Pinned topic Filter Messages based on age

‏2012-11-28T21:52:21Z |
All,

I have a requirement to process messages from queue only if they are older than 120 seconds.
One option i have is to pull message and check putDateTime and only if older than 120 seconds, acknowledge it.

Is there any other way to filter messages directly at time of get from queue?
Updated on 2013-01-30T05:27:13Z at 2013-01-30T05:27:13Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    8523 Posts

    Re: Filter Messages based on age

    ‏2013-01-18T09:36:41Z  
    I know qload support pack has this functionality i.e. filtering messages based on age.
    If qload is using MQ API to do this, there must be few functions which will satisfy your requirement.

    Please check MQ Programming Interface guide.

    Regards,
    Pravin
  • SystemAdmin
    SystemAdmin
    8523 Posts

    Re: Filter Messages based on age

    ‏2013-01-29T12:11:29Z  
    You could try using a Selector on the field in the MQMD?

    Cheers
    Morag
  • SystemAdmin
    SystemAdmin
    8523 Posts

    Re: Filter Messages based on age

    ‏2013-01-29T22:17:36Z  
    Hi Srikanth,

    >I have a requirement to process messages from queue only if they are older than 120 seconds.

    What is the reason for this requirement? Do you have a timing dependency?
    MQ apps should be designed to process messages as soon as they become available to consume.

    HTH, G.
  • SystemAdmin
    SystemAdmin
    8523 Posts

    Re: Filter Messages based on age

    ‏2013-01-30T05:27:13Z  
    Please try qload SupportPac MO03: WebSphere MQ Queue Load / Unload Utility. Very good tool with lot of options.

    Thanks
    Ravi