Java Reference
In-Depth Information
Listing 3.6. Asynchronous email notification
The BillingService , shown in listing 3.7 , debits the credit card. The asynchronous
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
honored. Chapter 5 will cover SessionContext in more depth.
 
Search WWH ::




Custom Search