O'Reilly logo

Professional C# 2012 and .NET 4.5 by Morgan Skinner, Karli Watson, Jay Glynn, Bill Evjen, Christian Nagel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 47

Message Queuing

WHAT’S IN THIS CHAPTER?

  • Message Queuing architecture
  • Using Message Queuing administrative tools
  • Creating Message Queues programmatically
  • Sending and receiving messages
  • Course order sample application
  • Using Message Queuing with WCF

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

You can find the wrox.com code downloads for this chapter http://www.wrox.com/remtitle.cgi?isbn=1118314425 on the Download Code tab.

  • Working with Queues
    • Create Message Queue
    • Find Queues
    • Open Queues
    • Send Messages
    • Receive Messages
  • Course Order Sample
    • Sender
    • Receiver
  • WCF Course Order Sample
    • Sender
    • Receiver

OVERVIEW

System.Messaging is a namespace that includes classes for reading and writing messages with the Message Queuing facility of the Windows operating system. You can use messaging in a disconnected scenario in which the client and server don’t need to run at the same time.

This chapter gives you information about the architecture and usage scenarios of Message Queuing, and then you dive into the classes from the System.Messaging namespace to create queues, and send and receive messages. You see how to deal with getting answers from the server with acknowledgment and response queues, and also how to use message queuing with a WCF message queuing binding.

Before diving into programming Message Queuing, this section discusses the basic concepts of messaging and compares it to synchronous and asynchronous programming. With synchronous programming, when a method is invoked, the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required