Home » Oracle » 1z0-898 » What are the transaction attributes on methodB, and method C respectively?
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?
A. MANDATORY, MANDATORY, and MANDATORY
B. REQUIRED, MANDATORY, and REQUIRES_NEW
C. MANDATORY, MANDATORY,and REQUIRES__NEW
D. REQUIRED, REQUIRES_NEW, and REQUIRES_NEW
Correct Answer: B
Explanation/Reference:
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.
References:
Download Printable PDF. VALID exam to help you PASS.
|
|