Java EE 7 Application Developer — Question 34
What is true about Message-Driven Beans (MDBs)?
Answer options
- A. MDBs can participate in transactions.
- B. MDBs are invoked synchronously.
- C. Each MDBs can process messages only from a single client.
- D. MDBs retain data caches between client calls.
Correct answer: A
Explanation
The correct answer is A because Message-Driven Beans can indeed participate in transactions, allowing them to ensure consistency in message processing. Option B is incorrect as MDBs are invoked asynchronously, not synchronously. Option C is also wrong since an MDB can process messages from multiple clients, and option D is incorrect because MDBs do not retain data caches between calls.