This week's giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Production-Ready Serverless (Operational Best Practices) and have Yan Cui on-line!
See this thread for details.
Win a copy of Production-Ready Serverless (Operational Best Practices) this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

JMS Queue Records  RSS feed

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Environment - Spring . Jboss.
 
Sheriff
Posts: 24282
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to keep track of what happens when the consumer attempts to consume the message, then you would logically put that processing into the consumer code, wouldn't you?
 
Ranch Hand
Posts: 391
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There would be 2 cases:

1. Messages which don't reach to the consumer at all and lost on the way
2. Messages which reached the consumer but processing got failed.
 
Paul Clapham
Sheriff
Posts: 24282
55
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
a wee bit from the empire
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!