Coffee Cram: Mock Exam Answers
Which are true about transactions in EJB 2.0? (Choose all that apply.)
(spec: 340-341)

A.
EJB containers must support both JTA and JTS.
- just UserTransaction from JTA

B.
EJB 2.0 supports nested transactions.

C.
The
javax.transaction.UserTransactionAPI allows you to set isolation levels.- No

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.
- Yes!
When using BMT demarcation, which of the following must commit a transaction before the method that initiated the transaction returns? (Choose all that apply.)
(spec: 340-341)

A.
message-driven beans

B.
stateful session beans
C.
stateless session beans
D.
none of the above
Which two are true about container-managed transactions ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access