Oracle
1Z0-860 · Question #303
1Z0-860 Question #303: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #303. The question stem and answer options stay visible for context.
Question
A developer is implementing a message-listener method of an EJB 3.0 message-driven bean. The developer wants to make sure that the message receipt is immediately rolled back in case the message listener method is aborted with a runtime exception. Which option can the developer use?
Options
- AUse Container-Managed Transactions with transaction attribute REQUIRED.
- BUse Container-Managed Transactions with transaction attribute NOT_SUPPORTED.
- CUse Bean-Managed Transactions and the JMS API for message acknowledgement.
- DUse Bean-Managed Transactions and write a try-catch-finally block that calls UserTransaction.
Unlock 1Z0-860 to see the answer
You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.