Java Reference
In-Depth Information
Listing 3.6. Asynchronous email notification
annotation on the class means that all public methods will be executed on a separate thread.
The
SessionContext
is injected so that calls to
success.cancel(true)
will be