Adding or Modifying an HTTP Server

images/download/attachments/44935137/HTTP_Server_2_EN-version-2-modificationdate-1659431757838-api-v2.png

(1) All existing HTTP servers are listed here. Double-click or right-click to get to the settings of the server. By default, you will find the two servers Main Server (./etc/hub.xml) and Administrative Server (./etc/admin.xml).

(2) You can add a new HTTP server via the context menu. See (3).

images/download/attachments/44935137/HTTP_Server_3_EN-version-1-modificationdate-1575442382718-api-v2.png


(3) The name of the server (e.g. Main Server 2) is usually set in the configuration file, see (4), and should be set there.

(4) Here you must specify the name of the configuration file of the HTTP server. You could, for example, copy the file ./etc/hub.xml, rename it to ./etc/hub2.xml and then change the name of the server and its port (<Set name="port">).

Attention: Changes are lost after a restart of the Integration Server. To make changes permanent, you need to customise the startup script or the startup configuration for the service. Please make sure that the entry is between admin.xml and factory.xml!

Start script ./bin/hub.bat (Windows)

if [%1]==["run"] (set ARGS=etc\hub.xml etc\admin.xml etc\hub2.xml etc\factory.xml & goto args_done)

if [%1]==[] (set ARGS=etc\admin.xml etc\hub.xml etc\hub2.xml etc\factory.xml & goto args_done)

Start script ./bin/execute.sh(Linux/Unix)

CONFIGS="${HUB_HOME}/etc/hub.xml ${HUB_HOME}/etc/admin.xml ${HUB_HOME}/etc/hub2.xml ${HUB_HOME}/etc/factory.xml"

Startup configuration for service (./etc/wrapper.conf)

# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=com.ebd.hubstarter.Starter
wrapper.app.parameter.2=com.ebd.hub.server.MainServer
wrapper.app.parameter.3=etc\admin.xml
wrapper.app.parameter.4=etc\hub.xml
wrapper.app.parameter.5=etc\hub2.xml
wrapper.app.parameter.6=etc\factory.xml


Attention: If you would like Lobster_data to accept outside HTTP requests (http(s)://<URL or IP of the Integration Server>/dw/Request) via your new HTTP server, you still need modify the configuration file ./etc/startup.xml as follows

<!-- If multiple HTTP servers are installed and servlets for _data client should only be assigned to a specific HTTP server, use next option -->
<Set name="internalServerName">Main Server 2</Set>