In this Delphi Labs episode we are focusing on different options for licecycle of DataSnap server methods instances running inside a DataSnap server.
In the first part of this lab I'm using Delphi XE to build a DataSnap VCL Forms app server and client application. The server method instance has overridden constructor where its private FID is initialized with a generated GUID and "GetId" server method is implemented to be able to uniquely identify a server methods instance on the client. The client app has a button and a label where the value of server method instance ID is displayed. At the end we see that with default DSServerClass.LifeCycle value of "Session" every connected client has its own server methods instance inside the server application.
The source code for this demo is available at http://cc.embarcadero.com/item/28199 and whitepaper at http://edn.embarcadero.com/delphi
Incredible explanation, truly remarkable and clear picture of new datasnap features, a job well done. Thanks.
vitisanity 8 months ago