which of these conditions could this be possible?

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

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

A.
The business method is marked with the MANDATORY transaction attribute.

B.
The business method is marked with the NOT_SUPPORTED transaction attribute.

C.
This is NOT possible; a stateless session bean cannot invoke EJBContext.setRollbackOnly.

D.
The bean has no metadata (in annotations or deployment descriptor) which specifies the
transaction attribute for the method.



Leave a Reply 0

Your email address will not be published. Required fields are marked *