InterviewSolution
| 1. |
Explain The Transactional Attribute Mandatory? |
|
Answer» USE the Mandatory attribute if the enterprise beans METHOD must use the TRANSACTION of the client. If the client is running WITHIN a transaction and invokes the enterprise beans method, the method executes within the clients transaction. If the client is not associated with a transaction, the container throws the Transaction Required EXCEPTION. Use the Mandatory attribute if the enterprise beans method must use the transaction of the client. If the client is running within a transaction and invokes the enterprise beans method, the method executes within the clients transaction. If the client is not associated with a transaction, the container throws the Transaction Required Exception. |
|