InterviewSolution
| 1. |
What The Ejb Transaction Parameters? |
|
Answer» Possible values for TRANSATTRIBUTE are: NotSupported:Bean cannot be involved in a transaction. If the CLIENT has started a transaction, the EXISTING transaction is suspended until the bean's method has COMPLETED. Required :Bean MUST always run within a transaction Supports :If the client has started a transaction, the bean joins the transaction. RequiresNew:Bean always starts a new transaction. Mandatory:The client must start a transaction when the bean is invoked. NEVER :If the client has started a transaction, the bean throws an exception. Possible values for TRANSATTRIBUTE are: NotSupported:Bean cannot be involved in a transaction. If the client has started a transaction, the existing transaction is suspended until the bean's method has completed. Required :Bean must always run within a transaction Supports :If the client has started a transaction, the bean joins the transaction. RequiresNew:Bean always starts a new transaction. Mandatory:The client must start a transaction when the bean is invoked. Never :If the client has started a transaction, the bean throws an exception. |
|