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

Asynchronous Components

Earlier, you saw how to build a J# client application that accesses the FourthCoffee components hosted within COM+. The components themselves were written in Visual Basic and supported queued method execution and loosely coupled events. Next, we’ll look at how to provide the same functionality using serviced components.

Creating a Queued Component

The Oven class (in the file Oven.jsl in the Oven project) models an oven for baking cakes. Before you place a cake in the oven, you must set the oven to the correct temperature and wait for the oven to reach that temperature. The Oven class implements the IQueuedOven interface, which defines the SetTemperature method. This method takes a temperature as a parameter and sets the oven ...

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