@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Asynchronous
Marks a method as an asynchronous method, to be
dispatched by the EJB3 TimerService.
If the method returns Timer, the return value
will be the Timer used for dispatching the
method call. Otherwise, the method should return
void.
Note that asynchronous calls are processed in
a different EVENT, SESSION and CONVERSATION
context to the caller, so the actual receiving
object may be a different instance of the
component to the object that was called.
- Author:
- Gavin King
- See Also:
Expiration
,
Duration
,
IntervalDuration