Page #73 (Object Activation)



In this chapter, we saw that the COM+ programming model is based on defining out-of-band attributes on a COM+ application. This lets the administrator of the application control its behavior. The configuration settings are stored in the COM+ catalog.

When an object is activated, COM+ ensures that the object runs in an appropriate context and correctly sets it up to receive the services it had requested. By providing a comprehensive interception mechanism, COM+ ensures that this run-time environment of the object is maintained during the lifetime of the object.

An object from a non-configured component runs in a default context.

A context is represented by a unique COM object called the object context (OC). The SDK provides APIs to let an object access its context s OC.

Finally, we looked at how an object can use the activator s context or the caller s context.

A few of the configuration attributes were examined in detail in this chapter. In the chapters to follow, we will examine many other important attributes.


COM+ Programming. A Practical Guide Using Visual C++ and ATL
COM+ Programming. A Practical Guide Using Visual C++ and ATL
ISBN: 130886742
Year: 2000
Pages: 129 © 2008-2017.
If you may any questions please contact us: