Roger Blanchard
447 posts
Registered:
29 Jun 2018
19 Oct 2024
Link to this post
The GetServiceHandle method appears to be trying to connect even if the pcConnectIfRequired parameter is passed as false. Am I reading this incorrectly?
/**
* Purpose: Returns the handle to a AppServer partition
* Notes: When plConnectIfRequired is set to TRUE, the partition will be
* connected if required.
* @param pcServicePartition The name of the partition to return the handle for
* @param plConnectIfRequired Connect if not already connected
* @return The HANDLE of the server object
*/
METHOD PUBLIC HANDLE GetServiceHandle (pcServicePartition AS CHARACTER,
plConnectIfRequired AS LOGICAL ):
IF pcServicePartition = "":U OR pcServicePartition = ? THEN
pcServicePartition = THIS-OBJECT:DefaultPartition .
IF THIS-OBJECT:IsConnected (pcServicePartition) THEN
RETURN DYNAMIC-FUNCTION ("getServiceHandle":U IN AppSrvUtils, pcServicePartition) .
ELSE
RETURN THIS-OBJECT:ConnectService (pcServicePartition) .
END METHOD.