Use command line to start the broker. For example, if the first broker is the primary login broker for the ABL clients. In addition to the existing database startup parameters of the PROSERVE command, specify the following parameters:
  • -S <portnumber/name>: Login broker listening port for ABL clients to connect client/server to the database.
  • -Mn: Total number or remote servers and secondary login brokers.
  • -Mpb: Maximum remote servers per protocol, in this case the number of ABL remote servers for ABL remote clients to communicate with.
  • -Ma: The ABL remote users per remote server -Mpb.
  • -minport: The minimum usable port number.
  • -maxport: The maximum usable port number.
  • -Mi: To number of ABL connections concurrently connected to an existing remote server before the login broker spawns a new remote server.
  • -ServerType 4GL: To ensure only ABL connections take up the -Mpb remote server slots.
After starting the first broker, start a second broker for the SQL clients using another PROSERVE command specifying the following parameters:
  • -m3: Parameter to the command line to instruct that this is an additional login broker.
  • -S <portnumber/name>: Login broker listening port for SQL clients to connect to the database.
  • -Mpb: Maximum remote server per protocol, in this case the number of SQL remote servers for SQL remote clients to communicate with.
  • -Ma: The SQL remote users per remote server -Mpb.
  • -minport: The minimum usable port number.
  • -maxport: The maximum usable port number.
  • -Mi: The number of SQL connections concurrently connected to an existing remote server before the login broker spawns a new remote server.
  • -ServerType SQL: To ensure only SQL connections take up the -Mpb remote server slots.

Example

The following is an example of a database configured for 70 concurrent user connections (40 ABL, 25 SQL and 5 other defined above):
  • The first login broker attends ABL connections on port 9000 by spawning remote ABL (_mprosrv) servers to service these on the -minport -maxport range.
  • The second login broker attends the SQL connections on port 8000 by spawning remote SQL servers (_sqlsrv2) to service these on the -minport -maxport range.
proserve <dbname> -n 70 -Mn 10 -Mpb 4 -Ma 10 -Mi 3 -S 9000
 -minport 9001 -maxport 9004 -ServerType 4GL -PendConnTime 30
proserve <dbname> -m3 -Mpb 5 -Ma 5 -Mi 5 -S 8000
 -minport 8001 -maxport 8005 -ServerType SQL
Note: Include the other database startup parameters such as -B, -L, -hash, -H, etc. for the primary login broker only and don't repeat when you start the secondary login brokers.

For more information, see How to set the values for the startup parameters -Ma, -Mn and -n