EJB supports programmatic transaction and declarative transaction handling. |
If the programmatic transaction is preferred (bean-managed transaction), then the bean itself interacts with the transaction servers. |
If the container-managed transaction is used, then the container handles the transaction related operations. |