Part #2 Structure
Part #3 Code
MessageQueuing Description:
Message Queuing is a part of the Windows Operating System, also known as MSMQ. It is a messaging infrastructure and a development tool for creating distributed messaging applications for Microsoft Windows. Applications developed for Message Queuing send messages to queues, which are temporary storage locations, from which messages can proceed to their final destination as conditions permit. Such applications can communicate across heterogeneous networks and can send messages between computers that might be temporarily unable to connect to one another. With Message Queuing, end users can communicate across networks and computers that might be offline, regardless of the current state of the network and computers. System administrators can use Message Queuing to efficiently manage large, complex networks of computers and message queues.
Note: The message component of the queue's name often confuses people as they are accustomed to dealing with mail messages, but the message part of a message queue can be any object / piece of data. Messages can be stored as plain text, XML, binary, or even a custom selected format.
MessageQueuing Benefits:
- Guaranteed message delivery even on disconnected environments.
- Improved security and optional integrated encryption.
- Support for sending messages within transactions.
- Supports sending multicast messages.
- Priority-based messaging.
- Efficient routing.
- Express mode, messages can be sent very fast. (Only stored in memory)
Windows 7
You install and uninstall Message Queuing by using Programs and Features in Control Panel.
Windows Server 2008 R2
You install and uninstall Message Queuing by using the Add Features Wizard available in Server Manager.
Earlier OS versions
Start->Settings->Control Panel->Administrative Tools->Computer Management.
Click the plus sign next to Services and Applications. You should see an item called Message Queuing. If you need to install MSMQ, you can do so by entering the Add Remove Programs window, click Add Remove Windows Components, and checkmark the option for Message Queuing.
Click the plus sign next to Services and Applications. You should see an item called Message Queuing. If you need to install MSMQ, you can do so by entering the Add Remove Programs window, click Add Remove Windows Components, and checkmark the option for Message Queuing.
Note: To manually empty the queue, right-click on "Queue messages", select All Tasks, and select Purge.
MessageQueuing (6)Subcomponents:
Message Queuing Server
This feature is the core component of Message Queuing, which enables you to perform basic Message Queuing functions.
Directory Service Integration
This feature enables publishing of queue properties to Active Directory, out-of-the-box authentication and encryption of messages using certificates registered in Active Directory, and routing of messages across sites.
Triggers
This feature enables the invocation of a COM component or an executable depending on the filters that you define for the incoming messages in a given queue
HTTP Support
This feature enables the sending and receiving of messages over HTTP.
Multicasting Support
This feature enables queuing and sending of multicast messages to a multicast IP address.
Routing Service
This feature routes messages between different sites and within a site.
Note: When Message Queuing is installed, the Message Queuing Service must be started. This service reads and writes messages and communicates with other Message Queuing servers to route messages across the network.
MessageQueuing (3)Ports:
The following ports are used for Microsoft Message Queuing (MSMQ) operations:
- TCP: 1801
- RPC: 135, 2101*, 2103*, 2105*
- UDP: 3527, 1801
Clustering and Load-balancing MSMQ:
Although Microsoft does not recommend it, it can be done. The following 2 posts will try to discourage you to do so, but also points one into the right direction.
[Transactional messages]
http://blogs.msdn.com/b/johnbreakwell/archive/2008/11/18/oil-and-water-msmq-transactional-messages-and-load-balancing.aspx
[Tip 8]
http://www.devx.com/enterprise/Article/22314/0/page/3
Update (2012-08-27):
In MSMQ 3.0, the queue's FormatName property lets you specify a public format name, private format name, distribution list format name, multicast address format name, multiple-element format name, or a queue alias.
A multi-element format name is a concatenation of any number of comma-delimited public format names, private format names, direct format names, multicast address format names, or distribution list format names. A MULTICAST formatname allows you to efficiently send a single copy of message such that it is received by multiple recipient queues while leveraging network support for reliable IP multicast. Direct format names, such as DIRECT=HTTP://URLAddressSpecification/msmq/QueueName let you reference public or private queues without accessing the directory.
Note: Be aware of the security implications of multicasting. Messages cannot be encrypted, and messages could be read or used by unauthorized persons. Ensure that the address specified is used only for Message Queuing multicasting.
The content of this series was found merged and customised from the following sites:
http://support.microsoft.com/kb/178517
http://support.microsoft.com/kb/815811
http://technet.microsoft.com/en-us/library/cc730994
http://www.primaryobjects.com/CMS/Article77.aspx
http://en.wikipedia.org/wiki/Microsoft_Message_Queuing
http://www.c-sharpcorner.com/UploadFile/rajkpt/101262007012217AM/1.aspx
http://www.techrepublic.com/article/using-message-queue-services-in-net/6136686
http://technet.microsoft.com/en-us/library/154e24ed-e149-4a2b-85cc-0dbae721cf48
http://msdn.microsoft.com/en-us/library/system.messaging.message.messagetype.aspx
No comments:
Post a Comment