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?

Bean A must invoke the getStatus method on the UserTransaclion that it began.

A.
It is NOT possible for bean A to determine if the transaction has been set to rollback.

B.
When the foo method returns, bean A needs to determine if the transaction has been set to
rollback. Which must be true?

Bean A must invoke the getStatus method on the UserTransaclion that it began.

C.
For this to be possible, bean B must also use bean-managed transaction demarcation.

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

E.
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 *