Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic question about JMS

 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Sorry for the simple question. But this is puzzling my mind very much. When we send a message to JMS proivder/IBM MQ, why we need acknowledgement? If send request succeeds doesnt mean that message has reached the actual message queue. Thanks in advance.
-Rizwan.
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JMS offers reliable messaging which basically means the JMS provider has to ensure that a message is really consumed (only once) by a client. Therefore you either have to use transacted sessions or you explicitly have to acknowledge each message in order to mark it as "consumed".

This article explains it in more detail.

Marco
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marco. You pointed out to very nice article.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic