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.
Throwa runtimeexception torollbackthetransaction.

B.
Call setRollbackOnly on the MessageDrivenContext interface.

C.
Makeuseof the TimerService, and implement the TimedObject interface.

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

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



Leave a Reply 0

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