O'Reilly logo

Expert Delphi by Paweł Głowacki

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing DataSnap server functionality

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required