Changes

Jump to navigation Jump to search
821 bytes added ,  13:49, 22 March 2012
|- valign="top"
! width='70' | Option
! Default
! Description
|- valign="top"
| {{Mono|org.basex.mode}}
| {{Mono|local}}
| Operation mode. By default, the value is "{{Mono|local}}": the servlets will access and store data locally using {{Mono|org.basex.path}}. If "{{Mono|client}}" is specified, all operations are performed on a remote server instance (the login data of which is stored in the {{Mono|.basex}} configuration file).
|- valign="top"
| {{Mono|org.basex.user}}
| -
| Database user. By default, no value is specified, and the credentials must be specified by the client. Note that it is a clear security risk to store user credentials in the {{Mono|web.xml}} file. The default user credentials can be found under [[Startup#BaseX_Client|Startup: BaseX Client]].
|- valign="top"
| {{Mono|org.basex.password}}
| -
| Database user password.
|}
Additionally, all database main options ({{Mono|DBPATH}}, {{Mono|HTTPPATH}}, etc can be overwritten by adding additional context-param elements and prefixing the name with "{{Mono|org.basex.}}". Relative paths will be prefixed with the servlet path. Some examples follow:
<pre class="brush:xml">
<context-param>
<param-name>org.basex.dbpath</param-name>
<param-value>data</param-value>
</context-param>
<context-param>
<param-name>org.basex.httppath</param-name>
<param-value>http</param-value>
</context-param>
<context-param>
<param-name>org.basex.repopath</param-name>
<param-value>repo</param-value>
</context-param>
<context-param>
<param-name>org.basex.lang</param-name>
<param-value>English</param-value>
</context-param>
</pre>
How to set these options in the web.xml of the BaseX web application is specific to the servlet container. For example, in Jetty it is done using [http://docs.codehaus.org/display/JETTY/override+web.xml an overriding web.xml]. Another option is to decompress the WAR file, edit the WEB-INF/web.xml file and again compress the WAR file.
administrator, Bureaucrats, editor, reviewer, Administrators
98

edits

Navigation menu