Kbase P68095: How to enable and disable SonicMQ client-side load balancing
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/18/2004 |
|
Status: Unverified
GOAL:
How to enable and disable SonicMQ client-side load balancing using 4GL?
FIX:
SonicMQ supports client-side load balancing. With this enabled, a connect request can be redirected to another broker within the SonicMQ cluster, provided broker-side load balancing has not been disabled. If client-side load balancing is turned on, the client allows redirection to another Sonic broker in the cluster. If it is turned off, the client does not allow redirection
Client-side load balancing involves the following methods on the session handle:
1. setLoadBalancing enables or disables client-side load balancing. Examples:
setLoadBalancing in ptpSession(TRUE). /* Enables client-side load balancing */
setLoadBalancing in ptpSession(FALSE). /* Disables client-side load balancing */
1. getLoadBalancing returns the current status of client-side load balancing, returning TRUE if it is enabled or FALSE if it is disabled. Example:
IF NOT getLoadBalancing in ptpSession() THEN
setLoadBalancing in ptpSession(TRUE).