RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomObjectBroker Class

TCustomObjectBroker is the base class for components that locate available application servers for a DataSnap connection component.

Pascal
TCustomObjectBroker = class(TComponent);
C++
class TCustomObjectBroker : public TComponent;

TCustomObjectBroker defines the methods by which a connection component obtains information about available application servers. When a connection component uses an object broker, it does not save any properties that identify a particular server machine. Instead, when it needs to open a connection, it uses the methods of the object broker to get that identifying information. This process allows client applications to locate server systems dynamically at runtime. If there are redundant server systems, this allows client applications to continue functioning when a server goes down. 

TCustomObjectBroker does not implement any of the methods that provide information to connection components. Instead, descendants such as TSimpleObjectBroker implement a mechanism for choosing servers and identifying them to connection components. Application developers can derive more elaborate object brokers that provide additional benefits such as intelligent load balancing. 

 

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