My application submits the requests to JMS queue continuously using Spring's JMSTemplate . There are chances that request is not submitted to JMS queue due to any error condition or request is submitted but not consumed successfully.
Is there any way I can keep record those cases . I am not sure how to find which message is consumed successfully and which one is failed.
That's a good point. #2 is what I had in mind with my earlier post, but #1? When the consumer receives a message it will acknowledge the receipt; there are ways to configure the system so that the message producer is notified that the consumer has acknowledge the receipt of a message. I urge you to read up on the options available there; I found Controlling Message Acknowledgment for example.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database