Source Code for This Chapter


The material in this chapter builds on the prototype code developed in Chapter 5. It assumes you have completed all the instructions in Chapter 5 and that everything up to the event-triggered matching logic works as expected. At this point, your ADF in the music store application's source directory, C:\SQL-NS\Samples\MusicStore\SongAlerts, should contain the same code as the final supplementary ADF, ApplicationDefinition-4.xml, in C:\SQL-NS\Chapters\05\SupplementaryFiles.

Just as in Chapter 5, I've provided supplementary ADFs that contain the new code shown in this chapter. As you go through the code listings, you can either type the new code manually or use these supplementary ADFs. Table 6.1 lists the supplementary ADFs for this chapter. You'll find these files in this chapter's source directory, C:\SQL-NS\Chapters\06\SupplementaryFiles.

Table 6.1. Supplementary ADFs and the Code They Contain

Filename

Code Added

Sections

ApplicationDefinition-5.xml

Event chronicle and event chronicle rule.

"Event State," p. 163.

ApplicationDefinition-6.xml

Scheduled subscription class, subscription chronicle, scheduled match rule, and chronicle rule. (This is the final ADF.)

"The Scheduled Subscription Class," p.168.


The instructions provided in Chapter 5 for adding code to the ADF and then updating the music store instance still apply. You should already be familiar with these instructions from the work you did in Chapter 5. The only difference is that if you're using the supplementary ADFs, you'll copy them from the Chapter 6 supplementary files directory C:(\SQL-NS\Chapters\06\SupplementaryFiles) instead of the Chapter 5 supplementary files directory. You will still be copying these files to the same location, overwriting the music store application's ADF at C:\SQL-NS\Samples\MusicStore\SongAlerts\ApplicationDefinition.xml. For reference, you can find the full instructions in the "Adding Code to the ADF" section (p. 130) and "Making Updates to an Instance and Its Applications" section (p. 131) of Chapter 5.




Microsoft SQL Server 2005 Notification Services
Microsoft SQL Server 2005 Notification Services
ISBN: 0672327791
EAN: 2147483647
Year: 2006
Pages: 166
Authors: Shyam Pather

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