nerdexam
Oracle

1Z0-860 · Question #235

Given: A stateless session bean's business method invokes EJBContext.setRollbackOnly and receives an Illegal StateExe option. Under which of these conditions could this be possible?

The correct answer is B. The business method is marked with the NONSUPPORTED transaction attribute. See the full explanation below for the reasoning.

Question

Given: A stateless session bean's business method invokes EJBContext.setRollbackOnly and receives an Illegal StateExe option. Under which of these conditions could this be possible?

Options

  • AThe business method is marked with the MANDATORY transaction attribute.
  • BThe business method is marked with the NONSUPPORTED transaction attribute.
  • CThis is NOT possible; a stateless session bean cannot invoke EJBContext.setRollbackOnly.
  • DThe bean has no metadata (in annotations or deployment descriptor) which specifies the transaction

How the community answered

(38 responses)
  • A
    5% (2)
  • B
    84% (32)
  • C
    3% (1)
  • D
    8% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-860 Practice