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.
In Control Panel, double-click the Add/Remove Programs icon.
On the left tab of the Add/Remove Programs window, click Add/Remove Windows Components.
Once the Windows Components Wizard opens, click to select the Message Queuing Services item. Click Next.
This will start the MSMQ 2.0 setup process. Your Windows XP installation CD-ROM, network share, or install point must be available.
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.
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.
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.
In the Control Panel, double-click Add or Remove Programs.
Click Add/Remove Windows Components in the left pane.
In the Windows Components wizard, select Application Server, and then click Details.
Check Message Queuing, click OK, and then click Next to complete the installation.
In the Control Panel, double-click Administrative Tools, and then double-click Computer Management.
Expand Services and Applications, and then click Services.
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.
Click the Recovery tab, set the first, second, and subsequent failures to Restart the service, and then click OK.
In the Control Panel, double-click Programs.
Under Programs and Features, select the option labeled Turn Windows features on or off. A dialog box titled Windows Features appears.
Expand Microsoft Message Queue (MSMQ) Server and select all available components.
Click OK. This will install all the necessary MSMQ components.
When installation completes, you will be prompted to restart your computer.
Data Link Properties Wizard
MSMQ Action | Data Link Properties Wizard