aspose file tools*
The moose likes Certification Results and the fly likes Mock question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Certification Results
Bookmark "Mock question" Watch "Mock question" New topic
Author

Mock question

Sanju Thomas
Ranch Hand

Joined: Dec 29, 2004
Posts: 243
Hi all,

This is one of the questions from ejbcertificate.com.

The answers given are 1 and 5.

But i think only 1 is right, because the fifth is telling that send an acknowledgement to the message service when the transaction has failed. Is it so ? acknowledgment is only for failed transaction ?

Can any one help me to solve my doubt ??

The question

Which of the following statements are true about acknowledgement of messages within message-driven beans? [Check all correct answers]

1. A message arrived in onMessage() is placed back on the message queue if the transaction rolls back for container managed message beans.

2. A message arrived in onMessage() within a container managed message bean is placed back on the message queue when the onMessage() method returns false.

3. A message arrived in onMessage() within a container managed message bean is placed back on the message queue when the onMessage() throws a checked exception.

4. A container managed message bean can use the deployment descriptor to define how messages are acknowledged to the message service.


5. The <acknowledge-mode> attribute defines the way bean managed message bean's send an acknowledgement to the message service when the transaction has failed.
Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
This forum is for osting results and not for asking questions
Pls ask them on SCBCD forum


SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mock question