TTLs & Message Processing
I am trying to use JCSMP client and I have three questions w.r.t message processing at client side and TTL :
- I have realised that if a message expires just at the moment it is being listened to at the client side, the message would be processed by client and also re-delivered via DMQ (as I am listening to DMQ as well). What is the general recommendation to avoid this re-processing.
- The same would also happen if the processing is taking really longer meanwhile the message expires and it is send to DMQ. Is there anyway to avoid sending such messages being processed to DMQ ?
- Is there any way to reject the expired messages by configuration at the broker level itself, and not by comparing the expiration or TTL. I understand such a configuration is available with Apache QPID, but atleast I could not find anything related in the JCSMP API documentation. Kindly point me out if there are any such configuration available
Thanks & Best Regards,