02 abril 2009

Bean-managed transactions (BMT)

Bean-managed transactions (BMT)—Developers should use bean-managed
transactions in order to have a finer-grained control over their transactional
system. For instance, with BMT beans, you can create more than one trans-
action per bean method (see recipe 5.9). A BMT bean is responsible for cre-
ating, propagating, committing, and rolling back its transactions. By not
relying on the container, the bean developer must face the sometimes
daunting task of coordinating a transactional system. EJB applications that
use BMT beans can be every bit as secure and reliable as CMT applications,
but there is a larger chance of developer-introduced transactional errors. In
most cases, the EJB container is sufficient for enterprise applications’ trans-
action management.

No hay comentarios: