All type of beans can participate in transactions. The interface javax.ejb.EJBContext declares the methods setRollbackOnly() and getRollbackOnly() to force a transaction to rollback and to
test if the transaction has been marked for rollback respectively.