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?
Re: Filter Messages based on age2013-01-18T09:36:41ZThis is the accepted answer. This is the accepted answer.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.
Re: Filter Messages based on age2013-01-29T22:17:36ZThis is the accepted answer. This is the accepted answer.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.