COM+ Unleashed provides a complete understanding of how to build and implement COM components, focusing on using COM+. This book shows you how to build COM objects and encapsulate their functionality, use distributed COM to build client/server and Web-based enterprise applications, and enhance applications with distributed services (MTS, MSMQ). You'll also see how to fully utilize the COM+ model to enhance productivity and to create highly flexible and powerful applications and encapsulate business logic into COM objects. You'll learn how to apply the COM+ model creatively and effectively to solve everyday programming problems, enhance the efficiency and functionality of your enterprise applications and build sophisticated distributed applications. The examples and programs in this book are written in C++.
I. WINDOWS DNA AND COM+.1. COM+: The Glue for Windows DNA.
Windows DNA. Internet Spoken Here: HTML and XML.
A Stateless Environment.
The Windows DNA Services.
The Windows DNA Services: COM and COM+. The Windows DNA Services: The DNA Core. The Windows DNA Services: Tools.
DNA: A Functional Overview.
The Browser. IIS. ASP. MTS. MSMQ and SQL Server. Visual Studio 6.0. Visual Basic. Visual C++.
Summary.2. Multitiered Component Architectures.
Ad-Hoc Design. Fundamental Application Boundaries: Presentation, Logic, and Data. Services.
Loosely Coupled Versus Tightly Coupled Tiers.
Three-Tiered Design. Keeping Tiers Balanced. Multitiered Design. Local or Distributed? Good Design Techniques.
Abstract the Application into Tiers. Identify Components. Create Interfaces. Implement the Components. Design Constraints. Design Goals.
Design Tools. Summary.
II. ADVANCED COMPROGRAMMING TECHNIQUES.3. COM+ Architecture and Administration.
The Evolution of COM+. MTS Shortcomings. COM+ Architecture.
Creating COM+ Objects. Parameterized Object Construction. Monikers. The Neutral-Threaded Apartment. Object Pooling. Dynamic Load Balancing.
COM+ Deployment Services. Resource Management with COM+.
Compensating Resource Managers.
Developing COM+ Applications. (d)Designing COM+ Components. Queued Components.
Queued Transactions. Administering Queued Components.
Loosely Coupled Events.
Using Loosely Coupled Events (LCE).
Accessing Data with COM+. COM+ Security. Base COM Features.
Structured Storage. Canceling Outstanding COM Calls.
Summary.4. Persistent Storage.
The IPersist Interfaces.
IPersistStorage. IPersistFile. IPersistStreamInit.
The IStream Interface.
IStream:: Write(). IStream::Read(). IStream::Seek().
Creating an ATL Object That Implements IPersistStreamInit.
Creating Simple ATL Controls.
Using an Object with Persistence. Simplify Persistent Object Creation. Simplify Persistent Object Use. Summary.5. Monikers.
COM+ Objects and Monikers.