Top Method Summary
Options Name Purpose
HANDLE ConnectService (character) Connects a single AppServer partition
DeleteServerHandle (handle) Deletes a server object and removes it from all partitions
DisconnectAllPartitions () Disconnects all AppServer partitions
DisconnectService (character) Disconnects a single AppServer partition
CHARACTER GetConnectString (buffer) Returns the connection string for the CONNECT method of the server object
HANDLE GetPartitionHandle (character) Returns the handle stored for a partition
HANDLE GetServiceHandle (character) Returns the handle to a AppServer partition
HANDLE GetServiceHandle (character, logical) Returns the handle to a AppServer partition
LOGICAL IsConnected (character) Returns TRUE if the specified AppServer Partition is known and connected.
LoadPartitions () Loads the AppServer partitions from the partition file
RegisterLocalPartition (character) Registers a local AppServer partition
RegisterPartition (character, character, character) Registers an AppServer partition that is connected through a URL
ReloadPartitions () Disconnects all AppServer partitions and loads the partitions from the partition file again
UnregisterPartition (character) Disconnects and removes an AppServer partition

Top Constructor Summary
Options Name Purpose
AppServerServiceManager () Constructor for the AppServerServiceManager class

Top Property Summary
Options Name Purpose
CHARACTER DefaultPartition
CHARACTER PartitionFileName
CHARACTER Partitions


Method Detail
Top

HANDLE ConnectService (character)

Purpose: Connects a single AppServer partition
Notes: Returns the Handle of the AppServer partition (Server handle or
session handle). Throws error when connection fails

Parameters:
pcServicePartition CHARACTER
The partition to return a server handle for
Returns HANDLE
The HANDLE of the server object
Top

DeleteServerHandle (handle)

Purpose: Deletes a server object and removes it from all partitions
Notes: Does not disconnect the server object

Parameters:
phServer HANDLE
The handle of the server object
Top

DisconnectAllPartitions ()

Purpose: Disconnects all AppServer partitions
Notes:

Top

DisconnectService (character)

Purpose: Disconnects a single AppServer partition
Notes: The connection is closed when no other partition of the same
Application Service uses it

Parameters:
pcServicePartition CHARACTER
The partition to disconnect from
Top

CHARACTER GetConnectString (buffer)

Purpose: Returns the connection string for the CONNECT method of the
server object
Notes: A partition with a URL connects through the URL, otherwise
through host, service and Application Service. Environment
variable tokens are resolved here, the partition keeps the
tokens (SCL-5736)

Parameters:
pbPartition buffer
The buffer with the partition
Returns CHARACTER
The connection string
Top

HANDLE GetPartitionHandle (character)

Purpose: Returns the handle stored for a partition
Notes: The session handle for a local partition that was connected

Parameters:
pcServicePartition CHARACTER
The name of the partition
Returns HANDLE
The handle or ? when the partition is not defined or not connected
Top

HANDLE GetServiceHandle (character)

Purpose: Returns the handle to a AppServer partition
Notes: Connects the partition when it is not connected, as the
Adm2AppServerServiceManager does

Parameters:
pcServicePartition CHARACTER
The name of the partition to return the handle for
Returns HANDLE
The HANDLE of the server object
Top

HANDLE GetServiceHandle (character, logical)

Purpose: Returns the handle to a AppServer partition
Notes: Connects the partition when it is not connected, regardless of
plConnectIfRequired, as the Adm2AppServerServiceManager does

Parameters:
pcServicePartition CHARACTER
The name of the partition to return the handle for
plConnectIfRequired LOGICAL
Connect if not already connected
Returns HANDLE
The HANDLE of the server object
Top

LOGICAL IsConnected (character)

Purpose: Returns TRUE if the specified AppServer Partition is known and
connected.
Notes: A local partition is connected after ConnectService was called
for it

Parameters:
pcServicePartition CHARACTER
The name of the partition to check if connection is established
Returns LOGICAL
Logical value indicating if the service is connected
Top

LoadPartitions ()

Purpose: Loads the AppServer partitions from the partition file
Notes: Ported from loadPartitionInfo of adecomm/as-utils.w. A session
without the file has no partitions

Top

RegisterLocalPartition (character)

Purpose: Registers a local AppServer partition
Notes: Requests for a local partition are executed in the current
session. Replaces a partition of the same name

Parameters:
pcServicePartition CHARACTER
The name of the partition
Top

RegisterPartition (character, character, character)

Purpose: Registers an AppServer partition that is connected through a URL
Notes: Replaces a partition of the same name, e.g. one loaded from the
partition file. Environment variable tokens in the URL and the
parameters are resolved at connect time

Parameters:
pcServicePartition CHARACTER
The name of the partition
pcServerUrl CHARACTER
The AppServer URL, e.g. http://localhost:8820/apsv
pcConnectionParameters CHARACTER
Further connection parameters, e.g. -sessionModel Session-free
Top

ReloadPartitions ()

Purpose: Disconnects all AppServer partitions and loads the partitions
from the partition file again
Notes: Partitions registered at runtime are removed

Top

UnregisterPartition (character)

Purpose: Disconnects and removes an AppServer partition
Notes: Does nothing when the partition is not defined

Parameters:
pcServicePartition CHARACTER
The name of the partition


Constructor Detail
Top

AppServerServiceManager ()

Purpose: Constructor for the AppServerServiceManager class
Notes: Loads the AppServer partitions when this has not been done in
the session yet



Property Detail
Top

CHARACTER DefaultPartition


Returns CHARACTER
Top

CHARACTER PartitionFileName


Returns CHARACTER
Top

CHARACTER Partitions


Returns CHARACTER


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       24.11.2026 09:59:20