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 ...

Get Microsoft® Visual J#™ .NET (Core Reference) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.