简体   繁体   中英

I have multiple JMSlisteners where am using @JMSListener annotation with queue as destination. Observing the loss of events in our listeners

The volume of our application is too huge ie around 500million per day. We are observing some loss of events. Please share if anyone has observed loss of events while consuming using @JmsListener.

There could be many reasons:

  1. some of your messages are producing errors and they are generating rollbacks which you didn't handle carefully
  2. you are not using transactions while you are having connectivity / sync / infrastructure issues
  3. it can be your configuration: not using persistent messaging, caching messages on client side within driver (etc..)

Whatever it is it is NOT issue of @JmsListner annotation, but of code, driver and messaging configuration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM