• 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

Supported Acknowledgement modes in MDB..

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

While going through EJB 3 in Action, i found that the supported acknowledgement modes for MDB are AUTO_ACKNOWLEDGE and DUPS_OK_ACKNOWLEDGE. CLIENT_ACKNOWLEDGE and SESSION_ACKNOWLEDGE are not supported as per page 130. Since the message is available in onMessage() method, i can still call message.acknowledge() which means CLIENT_ACKNOWLEDGE is working with MDB. Please correct me if i am wrong. So, CLIENT_ACKNOWLEDGE mode should be applicable to MDB. Why the it is classified as not supported with MDB?

Thanks in advance,
Kuppusamy.V.,
 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Acknowledge modes are mostly ignored by the container. I think it mostly vendor dependent - for example in Jboss I have tried and it always retries messages when there is an exception regarless of acknowledge modes or transaction attributes.
 
I am mighty! And this is a mighty small ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic