Which two can the developer select?

A developer is writing implementation code for an EJB 3.0 messagE. driven bean class that
processes booking requests. Within the business logic of the onMessage method, a temporary
problem can occur. In that case the developer wants to make sure that the booking request is
processed again in 30 minutes. Which two can the developer select? (Choose two.)

A developer is writing implementation code for an EJB 3.0 messagE. driven bean class that
processes booking requests. Within the business logic of the onMessage method, a temporary
problem can occur. In that case the developer wants to make sure that the booking request is
processed again in 30 minutes. Which two can the developer select? (Choose two.)

A.
Throw a runtime exception to roll back the transaction.

B.
Call setRollbackOnly on the MessageDrivenContext interface.

C.
Make use of the TimerService, and implement the TimedObject interface.

D.
Make use of the TimerService, implement a reprocess method, and annotate it with @Timeout.

E.
Throw an application exception, and add the retry-after attribute to the deployment descriptor.



Leave a Reply 0

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