Only session bean can use this. |
Container-managed transaction requires that the bean implementation does not use any resource specific transaction management since the container is in charge of defining transaction boundaries. |
The transaction type is only relevant for session beans therefore the deployment descriptor of session bean should specify which protocol it needs to use with transaction-type tag. |
Container obtains the required transaction support from the transaction attributes defined in the deployment descriptor. |