jQuery in Action, 3rd edition
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes acknowledgement mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "acknowledgement mode" Watch "acknowledgement mode" New topic

acknowledgement mode

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

I don't get the point of acknowledgement mode for message driven beans (Auto-acknowledge, Dups-ok-acknowledge). Is this part of the exam objectives ?

[My Blog]
All roads lead to JavaRanch
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

I am not sure it is on the exam, has anyone seen a question related to message acknowledgment ?

Anyways, to answer your question:

Auto-acknowledge : tells the container that it should send an acknowledgment to the JMS provider soon after the message is given to an MDB instance to process
Dups-ok-acknowledge : tells the container that it doesn't have to send the acknowledgment immediately

So the bottom line is that auto-acknowledge will not send duplicate messages while dups-ok-acknowledge might send a message that has already been sent.

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Is this part of the exam objectives ?

I agree. Here's the link: http://aspose.com/file-tools
subject: acknowledgement mode
It's not a secret anymore!