KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: WEB Server list may not list all web servers on start up
PRODUCT: 4D | VERSION: 18 R3 | PLATFORM: Mac & Win
Published On: July 20, 2020

4D v18R3 introduced the ability to run multiple web servers on a single database by running additional web servers from components included into the host database. To manage the web servers web server objects were introduced and a new command to manage them is the WEB Server list command. This command will return a collection of all web server objects available, however not all web server objects are available on startup.

Since any component can run a web server, to reduce the length of the collection when if there is no running web server the command will only have one element for the web server of the host database regardless of where the command was called from. Besides starting up the web server, to make an a component's web server object available the command WEB Server must be called from the component at least once to initialize and load the object. Once it the web server object has been made available by running it or loading the object the WEB Server list command will list it regardless of where the command is called from, even from another different component.

If not all web servers need to be started at startup but the objects are needed, an start up process can be ran to call WEB Server from each component running a web server to add them all to the collection.