RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomClientDataSet.RemoteServer Property

Specifies the connection component that this client dataset uses to connect to an application server.

Pascal
property RemoteServer: TCustomRemoteServer;
C++
__property TCustomRemoteServer RemoteServer;

If the client dataset is in the client portion of a multi-tiered application, use RemoteServer to specify the connection component that connects to the application server. The connection component locates the application server and obtains its IAppServer interface, which the client dataset can use for communicating with a remote provider. 

Although it is not required, you can also set RemoteServer to a TLocalConnection component when working with a provider that resides in the same application.  

If a client application uses more than connection component, the application can change which connection a client dataset uses by changing the value for this property.

Tip: If you have several client datasets that all use the same connection component and you think you may change the connection component later (for example, to change the protocol), you can use the ConnectionBroker property to centralize the connection.
 

 

ProviderName 

TSocketConnection 

TDCOMConnection 

TWebConnection 

AppServer 

IAppServer 

ConnectionBroker 

TLocalConnection 

TSoapConnection 

Specifying a Provider 

Using a Multi-Tiered Architecture 

Specifying the Provider using TLocalConnection or TConnectionBroker

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!