Distributed Transactions   «Prev  Next»

EJB Transactions - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. What activities are possible in bean-managed transactions?
Please select all the correct answers.
  A. Rollback a transaction
  B. Commit a transaction
  C. Discard a transaction
  D. Verify if a transaction context exists
  E. Terminate a transaction

2. Which of the following keywords are valid transaction controls for a method?
Please select all the correct answers.
  A. Trans_Required
  B. Supports
  C. Requires_New
  D. Never

3. What will happen if the invocation of a method, within the context of a transaction, arrives at a bean instance that has the transactional control set to Supports?
Please select the best answer.
  A. The call will be returned with an error.
  B. The existing transaction will be suspended and a new one will be started.
  C. The existing transaction will be propagated across the method.
  D. The existing transaction will be suspended and no new one started.