18.2. Creating a Notification Services Application
You can create and configure Notification Services instances and applications by using XML configuration files and SQL Server 2005 Management Studio, or programmatically by using NMO. An application created and configured using XML configuration files can be managed programmatically using NMO. The next section, "Programming Notification Services," discusses programming using NMO.
You need to perform the following tasks to create and configure a Notification Services application using XML configuration files:
Create and configure the Notification Services instance. You can do this in one of two ways:
Create an instance configuration file (ICF
) for the Notification Services instance. An ICF is an XML file that describes a Notification Services instance. The ICF names the instance and contains metadata about the instance, the SQL Server instance that hosts the instance database, delivery protocols, delivery channels, and encryption. The configuration file also lists applications hosted in the instance.
Use NMO to programmatically configure the Notification Services instance.
Create and configure the Notification Services application. This includes the structure of events, subscriptions, and notifications; configuration information for the distributor and generator; and application execution settings. You can create and configure an application in one of two ways:
Create an application definition file (ADF
for the Notification
Services application. An ADF is an XML file that contains metadata defining a Notification Services application. An ADF is required for each application hosted in the Notification Services instance.
Use NMO to configure the Notification Services instance programmatically.
Create a subscription management application that lets users sign up and manage their subscriptions and target devices.
Create a subscription management application using NMO subscription management classes.
Create custom event providers, content formatters, and delivery protocols as required.
Deploy the Notification Services application.
For more information about creating and using ICF and ADF files and the schemas for each file type, see Microsoft SQL Server 2005 Books Online.