gezueb Active Member Licensed User Longtime User Apr 12, 2021 #1 I am writing a b4j server program that incorporates several handlers. Some data e.g. user names or date filters must be passed on to other handlers. I am looking for a method that allows me to do so without violating re-entrancy rules. Declaring them as globals in the main seems to be out of question when more than one user is logged in to the server concurrently. Has someone a reasonable method to do so?
I am writing a b4j server program that incorporates several handlers. Some data e.g. user names or date filters must be passed on to other handlers. I am looking for a method that allows me to do so without violating re-entrancy rules. Declaring them as globals in the main seems to be out of question when more than one user is logged in to the server concurrently. Has someone a reasonable method to do so?
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2021 #2 gezueb said: Declaring them as globals in the main Click to expand... No. gezueb said: Has someone a reasonable method to do so? Click to expand... Sounds like you need to store the data using sessions: https://www.b4x.com/android/forum/t...ads-sessions-and-server-events.39969/#content Upvote 0
gezueb said: Declaring them as globals in the main Click to expand... No. gezueb said: Has someone a reasonable method to do so? Click to expand... Sounds like you need to store the data using sessions: https://www.b4x.com/android/forum/t...ads-sessions-and-server-events.39969/#content
gezueb Active Member Licensed User Longtime User Apr 12, 2021 #3 Thank you, Erel, will go and read (and try to understand?) Upvote 0