Using the Replication Extension Interface

Your DCOM replication extension interface must be developed as detailed in the IMSAdminReplication Interface Reference section and registered with IIS as specified in Custom Extensions Interface. Your interface must be installed on all source and target computers.

Iissync.exe replicates the metabase and calls system-installed extensions to replicate Web application definitions and MTS application package definitions, adjusting the registry on the target computer as necessary. Iissync.exe also calls your custom replication interface, enabling you to perform additional replication tasks. Your custom replication interface methods are IMSAdminReplication::GetSignature, IMSAdminReplication::Serialize, IMSAdminReplication::DeSerialize, IMSAdminReplication::Propagate, and IMSAdminReplication::Propagate2. Iissync.exe calls all of these methods, if necessary, except Propagate2, before replicating the metabase. It calls your Propagate2 method after replicating the metabase.

When replicating to multiple target computers, iissync.exe processes each target computer independent of the others. This means that different target computers may be in different steps of the replication process at the same time. The process will be discussed in two scenarios: Scenario A, when you replicate from one source computer to one target computer; and Scenario B, when you replicate from one source computer to multiple target computers.

Scenario A:

Scenario B:

Note  Replication to multiple target computers is not sequenced. You should not make any assumptions when designing your program in regards to the order in which target computers are selected for replication. Your GetSignature method is called first. On the source computer, calls to other methods may be received multiple times in any order.

Replication Process Flow