nerdexam
Oracle

1Z0-860 · Question #72

Session bean A is a client of session bean B. Bean A is using container-managed transactions and Bean A invokes a business method of bean B. Under which two circumstances does bean A know for…

The correct answer is D. Bean A's invocation of EJB Context.get Rollback Only returns true. E. Bean A receives ajavax.ejb.EJB Transaction Rolledback Exception. See the full explanation below for the reasoning.

Question

Session bean A is a client of session bean B. Bean A is using container-managed transactions and Bean A invokes a business method of bean B. Under which two circumstances does bean A know for certain that continuing the transaction is fruitless? (Choose two.)

Options

  • ABean A receives an application exception.
  • BBean A receives ajava.rmi.Remote Exception.
  • CBean A's invocation of UserTransaction.get Status returns false.
  • DBean A's invocation of EJB Context.get Rollback Only returns true.
  • EBean A receives ajavax.ejb.EJB Transaction Rolledback Exception.

How the community answered

(43 responses)
  • A
    5% (2)
  • B
    7% (3)
  • C
    16% (7)
  • D
    72% (31)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice