|
|
|}
==BaseX JAX-RX Server==
;Launch the JAX-RX server (deprecated from {{Version|7.0}}):
<pre>
$ basexjaxrx
BaseX [Server]
Server was started.
2011-01-02 03:04:05.600:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
2011-01-02 03:04:05.700:INFO::jetty-6.1.25
2011-01-02 03:04:05.800:INFO::Started SocketConnector@0.0.0.0:8984</pre>
JAX-RX Server was started.
Available command-line options can be listed with the <code>-h</code> flag:
<pre>
$ basexjaxrx -h
Usage: JaxRxServer [-jpPsUz]
-j<num> Set JAX-RX server port
-p<num> Set database server port
-P<pass> Specify user password
-s Start as service
-S<pars> Set serialization parameter(s)
-U<name> Specify user name
-z Suppress logging
</pre>
The options have the following meaning:
{| class="wikitable"
|- valign="top"
! width='70' | Flag
! Description
! Default
! width='145' | Examples
|- valign="top"
| <code>-j<num></code>
| The port on which the JAX-RX Server will be addressable. This port will be specified in the HTTP URLs.
| <code>8984</code>
| <code>-j9999</code>
|- valign="top"
| <code>-p<num></code>
| The port on which the BaseX Server will be addressable.
| <code>1984</code>
| <code>-p9998</code>
|- valign="top"
| <code>-P<pass></code>
| The user password, which will be used by JAX-RX to communicate with the BaseX Server. ''Warning'': when the password is specified on command-line, it may be visible to others.
| <code>admin</code>
| <code>-Uadmin -Padmin</code>
|- valign="top"
| <code>-s</code>
| Start the server as service (i.e., in background).
|
|
|- valign="top"
| <code>-S<pars></code>
| Specify parameters for serializing XQuery results; see [[Serialization]] for more details. This flag may be specified multiple times; key/value pairs are separated by equality signs (<code>=</code>).
|
| <code>-Sencoding=US-ASCII</code><br /><code>-Sindent=no</code>
|- valign="top"
| <code>-U<name></code>
| The user name, which will be used by JAX-RX to communicate with the BaseX Server.
| <code>admin</code>
| <code>-Uadmin</code>
|- valign="top"
| <code>-z</code>
| Do not generate [[Logging|log files]].
|
|}