Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

Realizovaním krokov popísaných v predchádzajúcej kapitole, aplikačný server Wildfly spustí pri svojom štarte aj By realizing the steps described in the previous chapter, the application server Wildfly when starting runs also the SmartWeb Java EE aplikáciu. Pri prvom spustení SmartWeb automaticky nakonfiguruje Wildfly podľa svojich požiadaviek. O túto konfiguráciu sa nemusí správca aplikácie vôbec starať, dokonca ani po realizovaní upgradu - t.j. v rámci konfigurácie aplikačného servera si všetko nevyhnutné na svoj beh aplikácia manažuje sama. Bočným efektom tejto operácie je že server môže urobiť reset (redeploy) aplikácie viac krát kvôli zmenám konfigurácie realizovaným počas štartu. Wildfly uloží tieto zmeny aj do súboru so svojou konfiguráciou standalone.xml aby sa zachovali aj po reštarte servera.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 Popri nevyhnutných zmenách konfigurácie Wildfly servera, SmartWeb pri štarte vytvorí aj svoju preddefinovanú konfiguráciu do súboru smartWeb.json, v prípade ak táto konfigurácia neexistuje. Vytvorený konfiguračný súbor sa nachádza v adresári aplikačného servera Wildfly /standalone/configuration/applications/<nazov <name .war súboru aplikácie>file of the application>/smartweb.json. Tento konfiguračný súbor je možné meniť kedykoľvek, aj počas behu aplikácie. Zmeny sa ale prejavia až pri reštarte (redeploymente) SmartWeb aplikácie.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 structureKonfiguračný súbor smartweb.json má nasledovnú štruktúru:

Blok kódu
languagejs
{
	"connections": [ 
		/* pole objektov s konfiguráciami konekcií naobjects' field with configurations of connections on D2000 */ 
	],
	"listenableConnection": { 
		/* object with objektconfiguration sof konfigurácioureversed reverznejconnection konekciebecause kvôliof DMZ (smerom zfrom D2000 -> SmartWeb) */
	}
	"authentication": { 
		/* objektobject swith konfiguráciouconfiguration autentifikácieof používateľovusers'authentication */
	}
	"application": {
		/* objekt s konfiguráciou samotnej aplikácieobject with configuration of the application itself */
		"cometApi": {
			/* object objektwith sconfiguration konfiguráciouof univerzálnehouniversal Comet API */
		},
		"restApi": {
			/* objektobject with sconfiguration konfiguráciouof univerzálnehouniversal REST API */
		},
		"development": {
			/* object objektwith sconfiguration konfiguráciouof povoleniaweb vývojaapplications webdevelopment aplikáciipermission naon tejtothis inštanciiinstance */
		},
		"tcl" : {
		  	/* object objektwith sconfiguration konfiguráciouof integráciethe SmartWeb application integration aplikáciewith sa tenkýmthin klientomclient (only from od verzieversion D2000 V12)*/
		},
		"webResourceDirectories": {
			/* objektobject with sconfiguration konfiguráciouof adresárovdirectories sowith zdrojmiweb webovejapplication aplikáciesources */
		},
	}	
}

Detaily jednotlivých položiek konfigurácie sú vysvetlené v nasledujúcich kapitoláchThe details of individual configuration items are explained in the following chapters.