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?
This topic has been locked.
4 replies Latest Post - 2013-01-30T05:27:13Z by SystemAdmin
Pinned topic Filter Messages based on age
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-30T05:27:13Z at 2013-01-30T05:27:13Z by SystemAdmin
Re: Filter Messages based on age2013-01-18T09:36:41Z in response to Srikanth_EAII 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:36Z in response to Srikanth_EAIHi 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.