Cover image for Visual Basic and COM+ programming by example
Title:
Visual Basic and COM+ programming by example
Author:
Li, Peishu.
Personal Author:
Publication Information:
Indianapolis, Ind. : Que, [2001]

©2001
Physical Description:
xiii, 495 pages : illustrations ; 24 cm
Language:
English
Title Subject:
ISBN:
9780789724588
Format :
Book

Available:*

Library
Call Number
Material Type
Home Location
Status
Central Library QA76.73.B3 L5 2001 Adult Non-Fiction Central Closed Stacks
Searching...

On Order

Summary

Summary

Combining Visual Basic programming with COM+ programming, this title teaches students how to administer COM+ components and provide security. They also learn how COM+ can be used to solve problems of Enterprise Application Integration. It is useful for Visual Basic Programming Courses.


Table of Contents

Introductionp. 1
About This Bookp. 1
Who Should Use This Bookp. 1
This Book's Organizationp. 2
Part I Welcome to COM+p. 5
1 What COM+ Is All Aboutp. 7
COM: The Component Object Modelp. 8
What Is COM?p. 8
COM Interfacesp. 10
The Virtual Function Table (vtable)p. 13
COM Threading Modelsp. 14
Distributed COM (DCOM)p. 18
In-Process Servers Versus Out-of-Process Serversp. 18
DCOM Architecturep. 18
Microsoft Transaction Server (MTS)p. 20
MTS Architecturep. 20
MTS Programming Modelp. 21
MTS Security Modelp. 24
MTS Limitationsp. 24
What Is COM+?p. 25
Core COM+ Servicesp. 25
New COM+ Servicesp. 26
COM+ Programming Modelp. 27
2 Windows DNA 2000 and COM+p. 31
Windows DNA 2000 Architecturep. 32
Internet Applications and Their Challengesp. 32
Three-Tiered Application Architecturep. 33
Infrastructure Servicesp. 42
Where COM+ Fits Inp. 43
Microsoft Data Access Components (MDAC)p. 44
MDAC and Universal Data Access (UDA)p. 44
Internet Information Services (IIS) and Active Server Pages (ASP)p. 64
3 Introduction to Microsoft Message Queuing Services (MSMQ)p. 71
Limitations of the Synchronous Processing Modelp. 72
Message Queuing and MSMQp. 73
Asynchronous Processing and Message Queuingp. 73
MSMQp. 74
MSMQ Architecturep. 75
Domain Environmentp. 75
Workgroup Environmentp. 75
Queuesp. 76
Messagesp. 80
Journalingp. 81
Programming MSMQ in Visual Basicp. 81
MSMQ COM Object Modelp. 81
Basic MSMQ Examplesp. 82
Advanced MSMQ Techniquesp. 90
An Asynchronous Ordering Applicationp. 99
4 Introduction to Visual Basic COM Programmingp. 111
Visual Basic COM Programming Primerp. 112
Types of COM Componentsp. 112
A Visual Basic COM DLL Projectp. 113
Writing a Simple COM Componentp. 118
Building Visual Basic ActiveX DLLsp. 120
Interfaces Revisitedp. 120
Properties, Methods, and Eventsp. 127
Error Handlingp. 131
Debugging and Testingp. 134
Designing COM Componentsp. 136
Special Design Considerationsp. 142
Granularity of Interfacesp. 142
Stateful Versus Statelessp. 142
Passing Parametersp. 143
Scripting Clientsp. 143
Designing Windows DNA Componentsp. 143
COM+ Componentsp. 144
5 Using the Component Services MMC Snap-Inp. 147
Introduction to COM+ Applicationsp. 148
Types of COM+ Applicationsp. 148
A Closer Look at a COM+ Applicationp. 149
Developing a COM+ Applicationp. 150
Creating a COM+ Applicationp. 151
Creating a New COM+ Applicationp. 151
Installing New Componentsp. 154
Deleting Components from a COM+ Applicationp. 156
Importing Existing Componentsp. 157
Removing COM+ Applicationsp. 158
Configuring COM+ Applicationsp. 158
Configuring Transactionsp. 159
Configuring Securityp. 161
Configuring JIT Activationp. 164
Configuring Queuingp. 166
Configuring Other COM+ Attributesp. 168
Deploying COM+ Applicationsp. 168
Converting MTS Packages into COM+ Applicationsp. 169
Part II Developing COM+ Application Componentsp. 171
6 Writing Transactional Componentsp. 173
Introduction to Transactionsp. 174
Transaction Basicsp. 174
ACID Propertiesp. 174
Transaction Managers (TMs)p. 175
Distributed Transactionsp. 176
Two-Phase Commit Protocolp. 177
Microsoft Distributed Transaction Coordinator (MS DTC)p. 177
COM+ Automatic Transactionsp. 177
Transactional Componentsp. 178
Determining the Transaction Outputp. 178
A Sample Transaction Applicationp. 179
Application Scopep. 179
The Workflow of Placing an Orderp. 181
Application ARchitecturep. 181
Implementationp. 185
Taking the Application for a Test Drivep. 210
Conclusionsp. 212
7 Compensating Resource Manager (CRM)p. 215
Resource Dispensers Versus Resource Managersp. 216
The Compensating Resource Manager (CRM)p. 216
Limitation of the MTS SDKp. 216
What Is the CRM?p. 217
The CRM Architecturep. 217
Developing a CRMp. 218
A Sample CRM Applicationp. 222
Using Microsoft Access Resourcesp. 223
The Northwind CRM Sample Applicationp. 227
CRM Development Issuesp. 252
Isolationp. 252
Recoveryp. 253
Idempotencep. 253
Other Considerationsp. 253
8 COM+ Securityp. 257
COM+ Security Architecturep. 258
Role-Based Securityp. 259
Designing Rolesp. 259
Using Roles to Authorize Clientsp. 260
Authorization Versus Authenticationp. 273
Impersonationp. 274
Impersonating Clientsp. 275
Cloakingp. 275
Security in Three-Tiered Applicationsp. 276
Security at the Middle Tierp. 276
Security at the Databasep. 276
Mixed Security Scenariosp. 277
Other Security Considerationsp. 277
Audit Trailsp. 277
Security for Library Applicationsp. 278
Security for Queued Components (QC)p. 278
9 Queued Componentsp. 281
Introduction to Queued Componentsp. 282
DCOM Limitationsp. 282
What About MSMQ?p. 282
Queued Components Architecturep. 283
The Benefits of Queued Componentsp. 284
Queued Components and Transactionsp. 285
Poison Messagesp. 287
Developing Queued Componentsp. 288
Queued Components Development Constraintsp. 288
Building a Simple Queued Componentp. 289
Configuring a Queued Componentp. 290
Activating a Queued Componentp. 293
Building a Client to Test the Queued Componentp. 295
Other Considerations About Queued Componentsp. 299
Exception Handlingp. 300
Server-Side Error Handlingp. 301
Client-Side Error Handlingp. 302
The Exception Classp. 302
Queued Components Securityp. 304
Making the Northwind Ordering Application Queueablep. 304
The System Architecturep. 305
The Shipping Databasep. 306
The Queued Componentsp. 308
Creating and Configuring the Queueable COM+ Applicationp. 309
Modifying Order2 Componentsp. 310
Taking the Application for a Test Drivep. 314
10 COM+ Eventsp. 317
Introduction to COM+ Eventsp. 318
Event Notification Modelsp. 318
The COM+ Event Architecturep. 320
A Sample LCE Applicationp. 323
The EventClass Objectp. 323
The Subscriberp. 325
The Publisherp. 329
Running the Sample Applicationp. 331
Adding LCE to the Northwind Applicationp. 332
The Northwind Inventory EventClassp. 332
The Northwind Inventory Event Subscriberp. 334
The Event Publisherp. 335
A Test Drivep. 340
Advanced COM+ Events Topicsp. 341
Event Filteringp. 341
Parallel Event Filteringp. 345
LCE and Queued Components (QC)p. 345
Other Considerationsp. 346
11 Administering COM+ Applications Programmaticallyp. 349
The COM+ Catalogp. 350
The Registration Database and the COM+ Catalogp. 350
The Catalog Serverp. 350
Authority Concernsp. 350
The COM+ Admin Objects Modelp. 350
The COMAdmin Objectsp. 351
COM+ Administration Collectionsp. 352
Important Methods and Propertiesp. 352
Basic COM+ Administration with the COMAdmin Objectsp. 355
Retrieving Information from COM+ Applicationsp. 355
Retrieving Subscription Informationp. 361
Registering a Subscriptionp. 363
Using the RelatedCollectionInfo Collectionp. 365
Creating and Configuring COM+ Applications for Northwindp. 366
Configuring Transactionsp. 367
Configuring Compensating Resource Mangerp. 371
Installing an EventClassp. 373
Subscribe to the Eventp. 375
Configuring Queued Componentsp. 378
Using the Windows Scripting Host to Automate COM+ Administrationp. 382
What Is the Windows Scripting Host?p. 382
Using the WSH to Configure Northwind Event Subscriptionp. 382
12 More on COM+ Programmingp. 387
Object Constructor Stringsp. 388
Shared Property Managerp. 396
Debugging COM+ Componentsp. 401
Object Poolingp. 406
Missing Pieces of COM+ 1.0 Beta Releasep. 407
Part III Building Real World COM+ Services Applicationsp. 409
13 Northwind Traders Online: A COM+ Enabled
Windows DNA 2000 Applicationp. 411
Northwind Traders Online: Welcome to the Webp. 412
The Purpose of the Web Applicationp. 412
A Brief Tourp. 412
Putting It All Togetherp. 414
The N-Tiered Application Architecturep. 414
The Workflowp. 415
The Presentation Tier: User Servicesp. 418
The Middle Tier: Business Servicesp. 419
The Data Tier: Data Servicesp. 423
Building the Northwind Traders Online Web Sitep. 423
The Login Pagep. 423
The Product Selection Pagep. 430
The Ordering Pagep. 431
The Confirmation Pagep. 434
Testing the COM+ Enabled Web Applicationp. 437
Conclusionsp. 440
14 A Case Study: COM+ and Enterprise Application Integration (EAI)p. 443
Introduction to Enterprise Application Integrationp. 444
The Case Studyp. 444
The Backgroundp. 444
Original Designp. 445
The Solution: COM+ and XMLp. 447
An XML Primerp. 449
What Is XML?p. 449
Dealing with XML Documentsp. 450
The Source Codep. 451
The EventClassp. 451
The Event Subscriberp. 452
The Integration Objectsp. 452
The Receiving ASP Pagep. 456
The CaseXML.XMLDoc Componentp. 458
The Databasesp. 460
Putting It All Togetherp. 462
Appendixp. 465
A COM+ and Related Web Resourcesp. 467
COM, DCOM, MTS, COM+, and Other Microsoft Technologiesp. 468
Other Resourcesp. 469
Indexp. 470

Google Preview