In DataSnap architecture, a programmer does not write code to instantiate a server methods class inside the server app. The LifeCycle property of DSServerClass1 component controls the life cycle of the server class. By default, it is set to Session, which means that for every connected client there is one server methods class instance inside the server app. When the client connects, it is created and when the client disconnects, it is destroyed. If this property is set to Server then there is only one, single server class instance for all the connected clients. In this case, the server method implementation should be thread safe because its methods could be called from different threads. The most ...
Implementing DataSnap server functionality
Get Expert Delphi now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.