Which is a valid use of the EJB 3.x TimerHandle object?

Which is a valid use of the EJB 3.x TimerHandle object?

Which is a valid use of the EJB 3.x TimerHandle object?

A.
To retrieve all active timers associated with this bean

B.
To adapt EJB 3.x timers to EJB 2.1 and earlier timers

C.
To obtain aseralizable timer handle that may be persisted

D.
To be implemented by EJB classes that are to be registered with the timer service

Explanation:
The TimerHandle interface allows the bean provider to obtain a serializable timer
handle that may be persisted.
Since timers are local objects, a timer handle must not be passed through a bean’s remote
business interface, remote interface or web service interface.
Reference: javax.ejb,Interface TimerHandle



Leave a Reply 0

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