Load the orders administration page in your browser, and select an order to view its details. In the order
details page, click the Process Order button (see Figure 18-4).
CHAPTER 18 ?– IMPLEMENTING THE ORDER PIPELINE: PART 1 580
Figure 18-4. Clicking the Process Order button in the TShirtShop order details page
?– Note If you want to be able to send an error e-mail to a localhost mail account (your_name@locahost),
then you should have a Simple Mail Transfer Protocol (SMTP) server started on your machine.
On a Red Hat (or Fedora) Linux distribution, you can start an SMTP server with the following command:
service sendmail start
?– Note On Windows systems, you should check in Internet Information Services (IIS) Manager for Default
SMTP Virtual Server and make sure it??™s started.
13. Check your inbox for a new e-mail that should read ???Test mail from PsDummy.???
14. Examine the audit table in the database to see the new entries (see Figure 18-5).
CHAPTER 18 ?– IMPLEMENTING THE ORDER PIPELINE: PART 1 581
Figure 18-5. audit table entries from PsDummy
How It Works: The Skeleton of the Order-Processing Functionality
Entries will be added by OrderProcessor and by individual pipeline stages to indicate successes and failures.
These entries can then be examined to see what has happened to an order, which is an important function when it
comes to error checking.
Pages:
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698