Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS topic asknowledge modes  RSS feed

 
al agady
Greenhorn
Posts: 7
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to understand what is the reason for creating topic session with acknowledge modes. Since topic is a publish / subscribe implementation, I believe the MQ server should not care if the message was received by some subscribers or not.

I was not able to find an answer to this question. All articles and tutorials are describing how acknowledge modes affect queue, but don't mention how they affect topic. Is there any article that would describe this issue?

Thanks
Gali
 
Jayr Motta
Ranch Hand
Posts: 110
Google App Engine Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think the theory apply for both types because the acknowledgment is not tied with the type and yes with the fact that the message was or wasn't delivered for a given client, I can be wrong but I'm quite sure of it.

The acknowledgement on topics will ensure that every consumer subscribed on your topic will receive the message once and if the message wasn't delivered successfully, the retry policy will apply.

Let me know if you find something different then this, I would like to know it!
 
al agady
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Jayr

It's clear to me now.

Regards
Gali
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!