Skip to Content
COM+ Programming with Visual Basic
book

COM+ Programming with Visual Basic

by Jose Mojica
June 2001
Intermediate to advanced
368 pages
11h 3m
English
O'Reilly Media, Inc.
Content preview from COM+ Programming with Visual Basic

Chapter 9. Transaction Services

Perhaps the most important feature in COM+ services is transactions. If you think about it, the predecessor to COM+ is Microsoft Transaction Server (MTS); the name implies that the main purpose of the product is to manage transactions.

In this chapter, you will learn about transaction services. A lot of COM+ programming has to do with concurrent data access. In large systems, a number of clients may be using the same COM+ application, and each client may be calling the same methods and accessing and modifying the same data. To guarantee that each client can change data safely, we use transactions.

What Is a Transaction?

A transaction in a database environment is usually defined as the movement of one or two pieces of data from one location to another in a way that guarantees their integrity. The definition of a transaction, however, is not limited to data in a database. It is also possible to involve other resources in the transaction. For example, COM+ transactions may involve MSMQ messages. (A full discussion of MSMQ—a product from Microsoft for sending and receiving messages—is beyond the scope of this book.) In order to ensure the integrity of data involved in them, transactions must meet the ACID rules. The acronym ACID stands for Atomic, Consistent, Isolated, and Durable. These terms have the following meaning:

Atomic

The operation must succeed completely or be rolled back completely. In other words, it is an all or nothing operation. Atomicity ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Subclassing and Hooking with Visual Basic

Subclassing and Hooking with Visual Basic

Stephen Teilhet
Programming in the .NET Environment

Programming in the .NET Environment

Damien Watkins, Mark Hammond, Brad Abrams
VB .NET Language in a Nutshell

VB .NET Language in a Nutshell

Steven Roman PhD, Ron Petrusha, Paul Lomax

Publisher Resources

ISBN: 1565928407Catalog PageErrata