O'Reilly logo

Microsoft® Visual J#™ .NET (Core Reference) by John/Longshaw, Andy Sharp

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

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

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