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

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

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

B.
When the foo method returns, bean A needs to determine if the transaction has been set to
rollback. Which must be true?
For this to be possible, bean B must also use bean-managed transaction demarcation.

A.
It is NOT possible for bean A to determine if the transaction has been set to rollback. B. Bean A
must invoke the getstatus method on the UserTransaction that it began.

B.
When the foo method returns, bean A needs to determine if the transaction has been set to
rollback. Which must be true?
For this to be possible, bean B must also use bean-managed transaction demarcation.

C.
Bean A must invoke the setRollbackOnly method on the UserTransaction that it began.

D.
Bean A must invoke the getRollbackOnly method on the UserTransaction that it began.



Leave a Reply 0

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