Quiz

1:Which of the following bean types can use bean-managed transaction demarcation?
  1. Stateless session beans

  2. Stateful session beans

  3. Entity beans

  4. Message-driven beans

A1: A, B, D
2:Transaction isolation levels in EJBs are
  1. Set by the bean developer for a bean-managed transaction

  2. Set by the deployer for a container-managed transaction

  3. Specified to the bean's method level

  4. Specified on the session to the database

A2: A, D
3:Which transaction attribute is mostly recommended in an XA-compliant resource manager?
  1. RequiredNew

  2. Required

  3. Mandatory

  4. Supported

A3: B

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.