Which three are possible causes for the container’s behavior?

While executing a business method in a stateless session bean the container rolls back the
method’s transaction. Which three are possible causes for the container’s behavior? (Choose
three.)

While executing a business method in a stateless session bean the container rolls back the
method’s transaction. Which three are possible causes for the container’s behavior? (Choose
three.)

A.
The bean uses container-managed transactions and invokes EJBContext.setRollbackOnly

B.
The bean uses container-managed transactions and invokes EJBContext.getRollbackOnly.

C.
The business method invokes a method that throws an uncaughtjava
lang.NullPointerException.

D.
The business method throws a checked exception of a class type that is marked with the
@ApplicationException annotation with the rollback element value false.

E.
The business method throws an unchecked exception of a class type that is marked with the
@ApplicationException annotation with the rollback element value true.

F.
The bean uses container-managed transactions and throws a checked exception of a class type
that is marked with the @ApplicationException annotation with the rollback element value false.



Leave a Reply 0

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