This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes acknowledgement mode Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "acknowledgement mode" Watch "acknowledgement mode" New topic
Author

acknowledgement mode

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

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: 546

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 ?


Yes
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: acknowledgement mode
 
Similar Threads
JMS
Mock question
Doubts on MDB's
MDB and acknowledge-mode
MessageDrivenBean acknowledgement modes