nerdexam
Oracle

1Z0-860 · Question #288

Bean A is using bean-managed transaction demarcation and has invoked the foo method of bean

The correct answer is B. Bean A must invoke the getStatus method on the UserTransaclion that it began. See the full explanation below for the reasoning.

Question

Bean A is using bean-managed transaction demarcation and has invoked the foo method of bean

Options

  • AIt is NOT possible for bean A to determine if the transaction has been set to rollback.
  • BBean A must invoke the getStatus method on the UserTransaclion that it began.
  • CFor this to be possible, bean B must also use bean-managed transaction demarcation.
  • DBean A must invoke the set RollbackOnly method on the UserTransaction that it began.
  • EBean A must invoke the get RollbackOnly method on the UserTransaction that it began.

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    73% (27)
  • C
    3% (1)
  • D
    8% (3)
  • E
    14% (5)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice