Returns information about the current status of the broker in terms of active contexts.
Syntax:
RqContexts (service/server name, query password)
Parameters:
service/server name – An Alpha variable or constant with a service/server name (from the Servers table).
query password – An Alpha variable or constant. This parameter is only required if the PasswordQuery is set in the Mgrb.ini file; otherwise, this parameter should be an empty string.
Returns:
Returns the following details for each context, in XML format:
Context ID
User ID
Context Group: The Context ID opened after login. Nested parallel contexts will all share the same Context Group value.
Start time
Client address
Runtime-engine host/port
Application name
The function will return an empty string in case of an error.
Example:
RqContexts ('Default Broker','')
See also:
The Online and Rich Client Samples projects (program ES07 and RES07)