1 | Container needs to demarcate the transaction boundaries or provide support for UserTransaction interface. |
2 | Bean needs to demarcate the transaction boundaries when the bean-managed transactions is in use. Bean obtains the reference of javax.transaction.UserTransaction interface from the context object given by the container. |
3 | Session bean can be declared as bean-managed or container-managed transaction. |
4 | Entity bean always declared with container-managed transaction. |