Friday, 12 August 2011

Working with MSMQ

What is MSMQ?

Microsoft Message Queue Server (MSMQ) is a fast store-and-forward service that enables applications running at different times to communicate across heterogeneous networks and systems that may be temporarily offline.

Applications send messages to queues and read messages from queues. The following illustration shows how a queue can hold messages that are generated by multiple sending applications and read by multiple receiving applications.Read more

Sample Code

This sample requires the installation of Message Queuing. See the installation instructions in Message Queuing
Notes on the WCF code sample

  • You need to add the name of the Queue in the the appSettings
  • Also in the clinent project in the service configs under system.setviceModel in the web.config file you need to add endpoint and bindings

Useful classes
Referencing System.Messaging libarary Message and MessageQueue classes are the ones that is needed.
Message: rovides everything required to define and use an MSMQ message
MessageQueue: provides all the necessary functionality to work with and manipulate MSMQ queues

MSMQ Software Development Kit (SDK)|


No comments:

Post a Comment