Chapter 6.  Programming the COM+ Catalog

COM+ stores the information about your applications, your components’ configuration and physical locations, global machine settings, and every other bit of data COM+ requires to operate in a repository called the COM+ Catalog.

The Catalog exposes COM+ interfaces and components that allow you to access the information it stores. Anything you can do visually with the Component Services Explorer, you can do programmatically as well—from exporting COM+ applications to doing fine-grained configuration such as enabling auto-deactivation on a method. In fact, the Component Services Explorer and the various wizards are merely handy user-interface wrappers around the Catalog interfaces and objects.

This chapter covers the COM+ Catalog programming model and provides you with useful code samples you can use as a starting point for automating all tasks of administrating COM+ applications and services.

Why Program the Catalog?

Some of the more advanced features of COM+ lack support in the Component Services Explorer and are available only by configuring your components programmatically. These features are largely tied in with COM+ Events (discussed in Chapter 9) and include COM+ events filtering and managing transient subscriptions to COM+ events.

Programming the COM+ Catalog gives you access to much more than advanced services. By learning to program the Catalog, you can provide your system administrators with helper utilities that automate tedious tasks. ...

Get COM & .NET Component Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.