• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

MessageDrivenBean acknowledgement modes

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

When message driven beans have the acknowledgement mode set as <acknowledge-mode>Dups-ok-acknowledge</acknowledge-mode>, does this mean that there is a risk of duplicate messages been received by the BEAN because the messaging service expects to receive an acknowledgement within a specified period?

Please correct my misconceptions if I have made any by asking this question.
 
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eddie

With Dups-ok-acknowledge, it means that it is OK if the container is slow in sending acknowledgement to the messaging service. The container takes time in sending acknowledgement and there is a risk of duplicate messages because the messaging service didn't get acknowledgement in time.

Thanks

Ravindra Janapareddy
 
Eddie Long
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your answer is the text straight out of HFE but what does it mean?
to me, it sounds like duplicate messages from the container to the messaging service! if this is the case then it doesn't make sense since the container is in charge of sending messages and the acknowledgement so it should know what messaging service has/hasn't received an acknowledgement. Furthermore, it means the container should know better than to send duplicate messages.

maybe i just don't understand how the acknowledgement works, please clarify
 
I am going to test your electrical conductivity with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic