From RAD Studio API Documentation
Jump to: navigation, search



TDispatchConnection = class(TCustomRemoteServer)


class PASCALIMPLEMENTATION TDispatchConnection : public Datasnap::Dbclient::TCustomRemoteServer


Type Visibility Source Unit Parent
class public
Datasnap.Win.MConnect Datasnap.Win.MConnect


TDispatchConnection is the base class for objects that connect client applications to an IDispatch-based application server.

Do not create instances of TDispatchConnection. Instead, use TDispatchConnection as a base class when creating a custom component that forms a connection to a COM-based application server in a multi-tiered database application.

TDispatchConnection introduces the infrastructure for logging on to an application server, obtaining an IAppServer interface, calling the application server's interface, and managing a remote connection. Additionally, TCustomRemoteServer inherits the ability to work with one or more client datasets.

TDispatchConnection is not capable of connecting to an application server. This ability is added by descendants, which are specialized for different connection types. Once a connection is formed, however, TDispatchConnection makes the application server's IAppServer interface available to TClientDataSet components.

To enable a client application to connect to a COM-based application server, use a descendant of TDispatchConnection such as TSocketConnection, TWebConnection, or TDCOMConnection.

See Also