This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Mock question

 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This forum is for osting results and not for asking questions
Pls ask them on SCBCD forum
 
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic