1Z0-898 · Question #6
Given the following stateless session bean implementation classes: Assuming no other transaction-related metadata, what are the transaction attributes on methodB, and method C respectively?
The correct answer is B. REQUIRED, MANDATORY, and REQUIRES_NEW. *TransactionAttributeType The enum TransactionAttributeType is used with the TransactionAttribute annotation to specify whether the methods of a session bean or message driven bean are called with a valid transaction context.
Question
Given the following stateless session bean implementation classes:
Assuming no other transaction-related metadata, what are the transaction attributes on methodB, and method C respectively?
Exhibit
Options
- AMANDATORY, MANDATORY, and MANDATORY
- BREQUIRED, MANDATORY, and REQUIRES_NEW
- CMANDATORY, MANDATORY, <and REQUIRES__NEW
- DREQUIRED, REQUIRES_NEW, and REQUIRES_NEW
How the community answered
(41 responses)- A2% (1)
- B83% (34)
- C10% (4)
- D5% (2)
Explanation
*TransactionAttributeType The enum TransactionAttributeType is used with the TransactionAttribute annotation to specify whether the methods of a session bean or message driven bean are called with a valid transaction context.
Topics
Community Discussion
No community discussion yet for this question.
