Programming Message Queues
Now that you have an understanding of how Message Queuing 3.0 operates, we’ll look at how to use it when you build J# applications. The .NET Framework Class Library provides a comprehensive API for interacting with Message Queuing 3.0 in the System.Messaging namespace.
Posting and Receiving Messages
We’ll adapt the by-now familiar example of the CakeSizeServer and CakeSizeClient used in many of the preceding chapters to show the use of message queues. Briefly, the QueuedCakeClient class (which is contained in the file QueuedCakeClient.jsl in the CakeSizeClient project) constructs a request comprising the details of a cake (size, shape, and filling) and submits it to a public message queue called CakeQueue on the computer ...