Container needs to demarcate the transaction boundaries or provide support for UserTransaction interface. |
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. |
Session bean can be declared as bean-managed or container-managed transaction. |
Entity bean always declared with container-managed transaction. |