Pro Visual C++ 2005 for C# Developers

Before looking at how to deal with Message Queuing programmatically, this section looks at the administrative tools that are part of the Windows operating system to create and manage queues and messages. The tools shown here are not only used with Message Queuing. The Message Queuing features of these tools are only available if Message Queuing is installed.

Creating Message Queues

Message queues can be created with the Computer Management MMC snap-in. On a Windows XP System you can start the Computer Management MMC snap-in with the Start Control Panel Administrative Tools Computer Management menu. In the tree view pane Message Queuing is located below the Services and Applications entry. By selecting Private Queues or Public Queues, new queues can be created from the Action menu (see Figure 31-5). Public queues are available only if Message Queuing is configured in Active Directory mode.

Figure 31-5

Message Queue Properties

After a queue is created, you can modify the queue's properties with the Computer Management snap- in by selecting the queue in the tree pane and selecting the Action Properties menu (see Figure 31-6).

Figure 31-6

Several options can be configured:

Категории