which circumstance canthis happen?

A session bean’s business method invokes
UserTransaction.setRollbackOnly and receives an HlegalStateException. Under which
circumstance canthis happen?

A session bean’s business method invokes
UserTransaction.setRollbackOnly and receives an HlegalStateException. Under which
circumstance canthis happen?

A.
The bean is using bean-managed transactions regardless of whether there is an active
transaction.

B.
There is no circumstance that would cause setRollbackOnly to throw an HlegalStateException.

C.
The bean is using bean-managed transaction demarcation, and UserTransaction.begin has
NOT been invoked.

D.
The setRollbackOnly method is invoked within a bean-managed transaction, and
UserTransaction.commit has NOT been invoked.



Leave a Reply 0

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