8.1. Running a Credit CheckIf you'll recall, we added a "Run Credit Check" link to the JAW Motors homepage as shown in Figure 8-1. Figure 8-1. JAW Motors homepageWhen the user clicks on the "Run Credit Check" link, the Controller routes them to the Run Credit Check page as depicted in Figure 8-2. Figure 8-2. JAW Motors Run Credit Check pageThe user enters his name, Social Security Number (SSN), and email address in the form, and presses the "Submit Credit Info" button. When a customer requests a credit check, he won't have to wait while for the external credit verification process to complete. The Controller Servlet sends a JMS message asynchronously to back end components that process business logic for the request. The customer gets routed back to the JAW Motors home page and then is free to continue using the JAW Motors web site while the credit check completes in the background. |