• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS:Difference between CLIENT and AUTO_ACKNOWLEDGE modes

 
Ranch Hand
Posts: 63
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can my fellow ranchers please throw some light on this JMS doubt:-In a pub-sub environment,
for a subscriber,what is the difference between CLIENT and AUTO ACKNOWLEDGE modes?
Also if i use the "CLIENT" mode,is it necessary to call the message.acknowledge() method? message-->TextMessage

Which one of the two is a safer mode to ensure proper delivery of messages.
Please note I am using a messageListener to listen to the messages.

thanks
cheers
vinnym.
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This article will give you some insight on the jms transactional model and acknowledgment modes.
I think, the choice of an acknowledgment mode, totally depends on what you want to do. If you want to take onus of deciding when a message is deemed to be consumed, then you must go for client ack and if you are sure that you will handle the message, no matter what comes your way, then you should do an auto acknowledgment.

Disclaimer: No one took a chance on this question so i did
 
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic