InterviewSolution
| 1. |
What Is 'requires New' Transaction Attribute That Can Be Defined In Container-managed Transactions? |
|
Answer» If a client has an associated TRANSACTION and calls a container-managed bean's method then the container SUSPENDS the client’s transaction, STARTS a new transaction, starts the call to the method and starts the client’s transaction after method COMPLETES. If the client is not associated with a transaction then the container starts a new transaction before CALLING the beans method. If a client has an associated transaction and calls a container-managed bean's method then the container suspends the client’s transaction, starts a new transaction, starts the call to the method and starts the client’s transaction after method completes. If the client is not associated with a transaction then the container starts a new transaction before calling the beans method. |
|