Learn how to build 3-tiered, thin-client application with COM+ and the Windows DNA 2000 * Extensive coverage of COM+ * Step-by-step instructions show you how to build Components that use COM+ Services: Fine-grained security, transactions, synchronization, queued components, and loosely coupled events * Learn how to integrate all the technologies in the Windows DNA 2000: COM+, ASP, IIS, SQL Server, OLEDB, ADO, and XML * Starts from first principles-no need to understand COM already * Build on your skill base with Visual C++? and Visual Basic? COM+ is the second generation of COM. It includes new features that make COM easier to use and simplifies the development of distributed, enterprise-class applications. COM+ builds on the distributed infrastructure provided by DCOM and MTS, and it represents the evolution of COM from a desktop, application integration technology to a distributed, application development infrastructure. In The COM and COM+ Programming Primer, youll follow an experienced instructor and programmer/developer through COM+ and COM code from the "inside out," so you understand its deep structure.
Youll build simple objects from scratch to gain a thorough familiarity with the underlying concepts. Your existing skills in Visual Basic and Visual C++ will help you master COM and COM+ so youll be creating usable applications in record time. With Alan Gordons straightforward explanations and practical use of standard tools, youll get the in-depth knowledge you need to create applications that leverage COM+ and all the technologies in the Windows DNA 2000.
Table of Contents:
(NOTE: Each chapter concludes with Summary.) I. LAYING THE FOUNDATION.
1. What's in a Name?
COM. DCOM. MTS. Windows DNA. COM+. ActiveX. OLE.
2. Classes, Objects, and Interfaces.
What is Object-Orientation? Classes. Objects. Interfaces.
3. Get on the Software Bus.
Software Bus Problems.
4. Building Your First COM Object.
The Simple Spell Checker. A Summary of the Steps. Creating a New DLL Project Using Visual C++. Creating a Custom Interface Using IDL. Declaring a C++ Class That Implements the COM Interface. Implementing the SpellChecker Interface. Creating a Class Object. Creating the Required DLL Entry-Points. Creating the Registration Functions. Creating a Client.
5. Making It Simple with ATL and Visual C++ COM Native Support.
A Quick Introduction to ATL. The Writer's Component. Creating an ATL Project Using the ATL/COM AppWizard. Adding the Document Checker COM Class Using the ATL Object Wizard. Implementing ISpellChecker. Implementing IgrammarChecker. Creating a Client with Visual C++'s Native COM Support.
II. DIGGING DEEPER.
6. Creating an Out-of-Process Server.
Marshaling. Instancing. Class Object Registration. Registering an Out-of-Process Server. Building an Out-of-Process Server. A Summary of the Steps.
7. Automation.
Defining Automation. Idispatch. Defining Idispatch Interfaces. Variants. Dual Interfaces. Building an Automation Server. A Summary of the Steps.
COM Callbacks and Connectable Objects.
Understand COM Callbacks/Events. Connectable Objects. Implementing Connection Points. The Connection Point Protocol. Your Multithreaded Stock Monitor Example.
9. COM Threading.
Definitions and Background. Multi-Threading and COM. Implement Objects That Will Run in Any STA. Implement Objects That Will Run in the Primary STA. Implement Objects That Will Run in the MTA. Implement Objects That Will Run in the TNA. Compare the Different Threading Models: An Apartment Study.
10. Distributed COM.
The Importance of DCOM. Location Transparency Revisited. Security. Example: Configuring a Server via DCOM.
III. COM+.
11. An Introduction to the COM+ Architecture.
Why Do You Need COM+? Application Architecture. The COM+ Solution. How It Works: The COM+ Architecture. Configure an Object to Use COM+.
12. An Introduction to the COM+ Services.
Fine-Grained Security. Transactions. Scalabilty. Synchronization. Queued Components. Load Balancing. Compensating Resource Managers.
13. Building a 3-Tiered Application Using COM+ and Windows DNA 2000.
What is the Windows DNA? The Windows DNA 2000. Creating Your First COM+ Application. The Publisher Example Program. Building the Publisher Example Application. Object Pooling. Deploying COM+ Application. Differences Between COM+ and MTS. Debugging with COM+.
14. Queued Components.
What are Queued Components? Why Do You Need Queued Components? Microsoft Message Queue. Installing and Using MSMQ. Using Queued Components in Your Example Program.
15. COM+ Events.
Why Do You Need COM+ Events? COM+ Events. Using Queued Components with Events. COM+ Events and Transactons. Filtering Events. Using COM+ Events in a Distributed Environment. Your COM+ Stock Monitoring Program.
Index.