The UserTransaction interface

(javax.transaction.UserTransaction)

Relax

There’s nothing about transaction timeout on the exam.

All transactions have some default timeout value, but you can change that with:

setTransactionTimeout(anIntValue). As a bean developer, you’ll probably never use anything but the default timeout value, so we don’t test for it on the exam.

1. begin(), 2. commit() or rollback(), 3. setRollbackOnly(), 4. getStatus(), 5. setTransactionTimeout()

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.