Kbase P111925: How can I find the AppService name from within a procedure running on an AppServer?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  19/12/2005 |
|
Status: Unverified
GOAL:
How can I find the AppService name from within a procedure running on an AppServer?
FIX:
There is no way to get the AppService name used by the client
in the remote procedure running on the AppServer. However, there is
one exception: If AppServer broker registers with the NameServer
using the same AppService name as it is the name of that Ubroker
instance, then it is possible to get that name by parsing the string contained
either in SESSION:SERVER-CONNECTION-ID, or SESSION:STARTUP-PARAMETERS.
The only sure way to get the AppService name is to send it
as the input parameter to the AppServer remote procedure that would
then set it in the SESSION:SERVER-CONNECTION-CONTEXT which can then
be used by other procedures running within that context.