RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMtsDataModule.OnActivate Event

Occurs when an instance of TMtsDataModule is activated.

Pascal
property OnActivate: TNotifyEvent;
C++
__property TNotifyEvent OnActivate;

Write an OnActivate event handler to take specific action when COMN+ or the MTS proxy activates the MTS data module. This is the point when any database connections should be established. Database connections must not opened before the MTS data module is activated.

Note: In traditional MTS or COM+ programming, objects acquire their context object when they are activated. However, TMtsDataModule handles this task automatically.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!