• 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

JMS Queue Records  RSS feed

 
Ranch Hand
Posts: 36
  • 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: 24081
54
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: 386
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: 24081
54
Eclipse IDE Firefox Browser MySQL Database
  • 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.
 
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
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!