Kbase P93445: How to make code execute once for appserver startup
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
Is it possible to run code for the AppServer broker rather than agent?
GOAL:
Similarly, is it possible to know which agent is started first using just the 4Gl to run code for just this agent
GOAL:
Code to be run should only be run once when AppServer starts
FIX:
Not possible to run code for broker and not possible to know which agent is started first from just the 4GL.
To get this functionality some kind of flag would need to be set for each agent to know whether to run the code in their startup procedure or not. For example, agent 1 starts and runs its startup procedure, it sets a value in a connected db field. Agent 2 starts and runs the same startup procedure which checks the db value. Depending on result the code can then run as required.