By realizing the steps described in the previous chapter, the application server Wildfly when starting runs also the SmartWeb Java EE application. During the first run, SmartWeb automatically configures Wildfly according to its requirements. Application administrator does not have to take care of this configuration at all, even after the upgrade - meaning within the application server configuration, the application manages everything necessary on its own. A side effect of this operation is that the server might do a reset (redeploy) of the application more times because of configuration changes realized during the start. Wildfly will save these changes also into the file with its configuration standalone.xml
, so they will be preserved even after the server restart.
Besides necessary changes of Wildfly server configuration, SmartWeb creates during start also its predefined configuration into the smartWeb.json file if such configuration does not exist. The created configuration file is located in the directory of the application server Wildfly /standalone/configuration/applications/<name .war file of the application>/smartweb.json
. This configuration file can be changed anytime even when the application is running. The changes will show only when restarting (redeploying) the SmartWeb application.
The configuration file smartweb.json
has the following structure:
{ "connections": [ /* objects' field with configurations of connections on D2000 */ ], "listenableConnection": { /* object with configuration of reversed connection because of DMZ (from D2000 -> SmartWeb) */ } "authentication": { /* object with configuration of users'authentication */ } "application": { /* object with configuration of the application itself */ "cometApi": { /* object with configuration of universal Comet API */ }, "restApi": { /* object with configuration of universal REST API */ }, "development": { /* object with configuration of web applications development permission on this instance */ }, "tcl" : { /* object with configuration of the SmartWeb application integration with a thin client (only from version D2000 V12)*/ }, "webResourceDirectories": { /* object with configuration of directories with web application sources */ }, } }
The details of individual configuration items are explained in the following chapters.
0 komentárov