Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Accessing TDSServerModule


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Mar 1, 2016 5:13 AM Last Post By: Uwe Raabe
Carlos Matos

Posts: 114
Registered: 6/25/01
Accessing TDSServerModule  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 29, 2016 9:01 AM
I have a Datasnap server application and I need to define some variables that must be unique for each client connection. I need to acess these variables from another TDatamodule.
I'd try to define them on the ServerMethodsUnit1 unit on the public session, but now I can't access them.
Is it possible to do this or is there another (better) aproach to acomplish this?
Carlos Matos

Posts: 114
Registered: 6/25/01
Re: Accessing TDSServerModule  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 1, 2016 3:43 AM   in response to: Carlos Matos in response to: Carlos Matos
Anyone, please!!!
Uwe Raabe

Posts: 180
Registered: 10/20/00
Re: Accessing TDSServerModule  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 1, 2016 5:13 AM   in response to: Carlos Matos in response to: Carlos Matos
Carlos Matos wrote:

I have a Datasnap server application and I need to define some
variables that must be unique for each client connection. I need to
acess these variables from another TDatamodule. I'd try to define
them on the ServerMethodsUnit1 unit on the public session, but now I
can't access them. Is it possible to do this or is there another
(better) aproach to acomplish this?

The TDSServerClass has events OnCreateInstance and OnDestroyInstance.
You can use these to keep track of the currently available instances.

--
Uwe Raabe
Embarcadero MVP
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02