This function allows to create a pool of Middleware sessions dynamically.
Context
Adelia Web client,
Adelia Cloud client.
Parameters
ALPHA |
AliasPool(E) |
Alias of the session pool to be created. |
NUM_BIN_4 |
MaxConns(E) |
Maximum number of sessions which can be opened by the pool. |
NUM_BIN_4 |
MinSize(E) |
Number of permanent sessions in the pool (or minimum size of the pool). |
NUM_BIN_4 |
TimeOut(E) |
Session lifetime in milliseconds between two uses in the pool. When the specified time is expired, the sessions exceeding the minimum size are released. |
NUM_BIN_4 |
HangTime(E) |
Time in milliseconds after which a session can be considered as being blocked. Beyond this time, the session is automatically made available in the pool. |
ALPHA |
FileCfg(E) |
Client configuration file (MWCLIENT.ini) which should be used for the pool. |
ALPHA |
UserOv(E) |
Substitution user name (optional) for the one defined for the physical server(s) specified in the configuration file. |
ALPHA |
PwdOv(E) |
Substitution password (optional) for the one defined for the physical server(s) specified in the configuration file. |
NUM_BIN_2 |
CodeRet(S) |
Return code for the operation: 0 The operation was successful. -1 The pool is already defined. -2 Error when creating the pool. |
Note: For the MaxConns, MinSize, TimeOut, HangTime, it is possible to use the -1 value to set the default value.
Example
CALL_DLL 'VaToolBx' ' 'VaToolBxCreateSessionPool' 'PoolPrinters' -1 -1 -1 -1 'c:\conf_files\poolMwConf.ini' *BLANK *BLANK
CALL_DLL 'VaToolBx' ' 'VaToolBxCreateSessionPool' 'PoolPrinters' 20 5 1000000 500000 'c:\conf_files\poolMwConf.ini' 'PrtUsr' *BLANK