Coffee Cram: Mock Exam

  1. Which are true about transactions in EJB 2.0? (Choose all that apply.)

    A.

    EJB containers must support both JTA and JTS.

    B.

    EJB 2.0 supports nested transactions.

    C.

    The javax.transaction.UserTransaction API allows you to set isolation levels.

    D.

    A bean instance can run multiple transactions in parallel.

    E.

    A message-driven bean instance must complete a transaction before the ‘onMessage’ method returns.

  2. When using BMT demarcation, which of the following must commit a transaction before the method that initiated the transaction returns? (Choose all that apply.)

    A.

    message-driven beans

    B.

    stateful session beans

    C.

    stateless session beans

    D.

    none of the above

  3. Which two are true about container-managed ...

Get Head First EJB 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.