Section 8.1. Running a Credit Check


8.1. Running a Credit Check

If 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 homepage


When 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 page


The 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.



JBoss at Work. A Practical Guide
JBoss at Work: A Practical Guide
ISBN: 0596007345
EAN: 2147483647
Year: 2004
Pages: 197

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net