Difference between revisions of "Xebra Webapp Config File"

(server_host)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Xebra]]
 
[[Category:Xebra]]
 
[[Xebra About|About]] | [[Xebra Installation|Installation]] |  [[Xebra Documentation|Documentation]] |  [[Xebra Tutorial|Tutorials]] | [[Xebra FAQ|Frequently Asked Questions]]
 
[[Xebra About|About]] | [[Xebra Installation|Installation]] |  [[Xebra Documentation|Documentation]] |  [[Xebra Tutorial|Tutorials]] | [[Xebra FAQ|Frequently Asked Questions]]
 +
 +
Whenever the server (re)loads its config file, the webapp_root folder is scanned for webapp 'config.wapp' files. These files represent the webapps that are loaded into the server. The webapp config files are formated in Java Script Object Notation (JSON).
 +
  
  
 
=Properties=
 
=Properties=
 +
==ecf==
 +
*Type: Path to file
 +
*Description: Specifies the path to the webapp's ecf file.
 +
 
==name==
 
==name==
*Type: String
+
*Type: STRING
 
*Description: The name of the webapp
 
*Description: The name of the webapp
  
 
==port==
 
==port==
*Type: Natural
+
*Type: NATURAL
 
*Description: Defines the port where the webapp is listening to server request. Use a different port for every webapp
 
*Description: Defines the port where the webapp is listening to server request. Use a different port for every webapp
  
==host==
+
==server_host==
*Type: String
+
*Type: STRING
*Description: (Not used yet)
+
*Description: Specifies the host of the xebra server (in relation to the webapp)
  
==is_interactive==
+
==taglibs==
*Type: Boolean
+
*Type: ARRAY
*Description: If set to true the webapp will listen to console input. Enter 'x' to shutdown the webapp via console. Note that this option can be overridden by the correspondent run argument.
+
*Description: Use this property to tell the translator which tag-libraries are used by this webapplication.
 +
===name===
 +
*Type: STRING
 +
*Description: The name of the taglib
 +
===ecf===
 +
*Type: STRING
 +
*Description: Specifies the name of the taglib's ecf file
 +
=== path ===
 +
*Type: Path to dir
 +
*Description: Specifies the dir to the taglib
  
  
  
 
=Example=
 
=Example=
name=demoapplication
+
<code>
port=55005
+
{
host=localhost
+
"ecf": "$XEBRA_DEV/www/servercontrol/servercontrol.ecf",
  is_interactive=false
+
"name": "servercontrol",
 +
"port": "55003",
 +
"server_host": "localhost",
 +
"taglibs":
 +
[
 +
{
 +
"name": "xebra_taglibrary_base",
 +
"ecf": "xebra_taglibrary_base.ecf",
 +
"path": "$XEBRA_LIBRARY/xebra_taglibrary_base"
 +
},
 +
{
 +
"name": "xebra_taglibrary_form",
 +
"ecf":  "xebra_taglibrary_form.ecf",
 +
"path": "$XEBRA_LIBRARY/xebra_taglibrary_form"
 +
}
 +
]
 +
}
 +
</code>

Latest revision as of 13:14, 20 August 2009

About | Installation | Documentation | Tutorials | Frequently Asked Questions

Whenever the server (re)loads its config file, the webapp_root folder is scanned for webapp 'config.wapp' files. These files represent the webapps that are loaded into the server. The webapp config files are formated in Java Script Object Notation (JSON).


Properties

ecf

  • Type: Path to file
  • Description: Specifies the path to the webapp's ecf file.

name

  • Type: STRING
  • Description: The name of the webapp

port

  • Type: NATURAL
  • Description: Defines the port where the webapp is listening to server request. Use a different port for every webapp

server_host

  • Type: STRING
  • Description: Specifies the host of the xebra server (in relation to the webapp)

taglibs

  • Type: ARRAY
  • Description: Use this property to tell the translator which tag-libraries are used by this webapplication.

name

  • Type: STRING
  • Description: The name of the taglib

ecf

  • Type: STRING
  • Description: Specifies the name of the taglib's ecf file

path

  • Type: Path to dir
  • Description: Specifies the dir to the taglib


Example

{
	"ecf": "$XEBRA_DEV/www/servercontrol/servercontrol.ecf",
	"name": "servercontrol",
	"port": "55003",
	"server_host": "localhost",
	"taglibs":
	[
		{ 
			"name": "xebra_taglibrary_base",
			"ecf":  "xebra_taglibrary_base.ecf",
			"path": "$XEBRA_LIBRARY/xebra_taglibrary_base"
		},
		{
			"name": "xebra_taglibrary_form",
			"ecf":  "xebra_taglibrary_form.ecf",
			"path": "$XEBRA_LIBRARY/xebra_taglibrary_form"
		}
	]
}