MSMQ Overview & Installation


Microsoft Message Queuing (MSMQ) is a component of the Windows operating system that allows cooperating applications to send and receive messages to each other, even if the intended recipient application is not running or the computer on which the sender or recipient application is running is disconnected from the network. Messages are stored and forwarded by MSMQ until they reach the destination queue. Later, when a recipient application runs, it can retrieve the messages from the queue. MSMQ de-couples sender and recipient applications so they do not need to run at the same time. Message Queuing provides built-in enhanced security, transaction support, and other features.

MSMQ is useful when custom applications need to communicate reliably across potentially unreliable or occasionally connected networks. MSMQ is also useful as a persistent storage mechanism for a list of items. For example, a server-based application could use MSMQ to store queued orders that would be submitted as a batch to an order-processing system at the end of the day. MSMQ is also the underpinning infrastructure for reliable messaging in Windows Communication Foundation, first available in Windows Vista, the next version of the client operating system.

Message Queuing can be accessed and used by any Windows application, including Windows Forms applications that present graphical user interfaces (GUIs), smart client applications built on top of the Microsoft Office System, server-side applications running within ASP.NET, Windows Services, and others.

MSMQ is available as a component of Windows 2000, Windows XP (excluding Home Edition), Windows Server 2003, Windows Vista (all editions) and will be included in future server versions of Windows. Because Message Queuing is a component of Windows, its use is covered by the Windows license. If you have a valid license to use Windows, then you can use MSMQ.

Windows XP

To install MSMQ on Windows XP:

  1. In Control Panel, double-click the Add/Remove Programs icon.

  2. On the left tab of the Add/Remove Programs window, click Add/Remove Windows Components.

  3. Once the Windows Components Wizard opens, click to select the Message Queuing Services item. Click Next.

  4. This will start the MSMQ 2.0 setup process. Your Windows XP installation CD-ROM, network share, or install point must be available.

  5. MSMQ will display an installation dialog box. You will be prompted to install either an MSMQ server or a dependent client. Click Message Queuing Server.

  6. MSMQ will then search for a Domain Controller with MSMQ installed. If MSMQ doesn't find a domain controller automatically, it will display a dialog box requesting the "Name of the computer running MSMQ." You can type in the name of a Windows XP Domain Controller.

  7. You can also choose to install MSMQ 2.0 in Workgroup mode (by selecting Message Queuing Will Not Access a Directory Service), but this alters the behavior of Queued Components.

Windows Server 2003

To install MSMQ on Windows Server 2003

  1. In the Control Panel, double-click Add or Remove Programs.

  2. Click Add/Remove Windows Components in the left pane.

  3. In the Windows Components wizard, select Application Server, and then click Details.

  4. Check Message Queuing, click OK, and then click Next to complete the installation.

  5. In the Control Panel, double-click Administrative Tools, and then double-click Computer Management.

  6. Expand Services and Applications, and then click Services.

  7. Right-click Message Queuing in the services list, and then click Properties.

Note:  Be sure to right-click the Message Queuing service in the services list on the right side of the window. Do not confuse it with the Message Queuing folder in the tree view.

  1. Click the Recovery tab, set the first, second, and subsequent failures to Restart the service, and then click OK.

Windows Vista/Windows 7

To Install MSMQ on Windows Vista/Windows 7

  1. In the Control Panel, double-click Programs.

  2. Under Programs and Features, select the option labeled Turn Windows features on or off. A dialog box titled Windows Features appears.

  3. Expand Microsoft Message Queue (MSMQ) Server and select all available components.

  4. Click OK. This will install all the necessary MSMQ components.

  5. When installation completes, you will be prompted to restart your computer.

See Also

MSMQ Action

Data Link Properties Wizard

See Also

MSMQ Action | Data Link Properties Wizard