Kbase P94279: Is it possible in OpenEdge to make asynchronous calls to the AppServer from the Open Client ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/09/2004 |
|
Status: Unverified
GOAL:
Is it possible in OpenEdge to make asynchronous calls to the AppServer from the Open Client ?
FIX:
The purpose of asynchronous requests is to be able to send a request to the AppServer in such a way that the client can continue executing while the request is being processed, and have the client notified when the response is received.
Since the 4GL is a single threaded language we introduced the asynchronous request model to get the above behavior. Java and .NET are multi-threaded languages, so they already have a built-in model for achieving behavior such as the above.
If you want the behavior as described above, fork a thread and call the AppServer from the forked thread while continuing execution in the main thread. The request to the AppServer in the forked thread will block until the response is complete, but you can continue executing in the main thread.