Wiki source code of Use a Remote HSQLDB Server
Last modified by Eleni Cojocariu on 2026/11/25 14:47
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | To make XWiki use an HSQLDB server running as a separate process, instead of the [[embedded database>>doc:documentation.xs.admin.installation.database.configure-hsqldb.WebHome]] and with the same [[limitations>>doc:documentation.xs.admin.installation.database.configure-hsqldb.hsqldb-limitations.WebHome]]: | ||
| 2 | |||
| 3 | 1. Verify that the major version of the ##hsqldb*.jar## on XWiki's classpath matches the major version of the remote HSQLDB server. | ||
| 4 | 1. Configure and start the remote HSQLDB server by following the official HyperSQL documentation: [[HyperSQL User Guide - Running and Using HyperSQL>>https://hsqldb.org/doc/guide/]]. | ||
| 5 | 1. In ##WEB-INF/hibernate.cfg.xml##, replace the ##jdbc:hsqldb:file:...## connection URL with a remote server URL. Replace ##HOSTNAME##, ##PORT##, and ##dbname## with the host, port, and database name configured on the HSQLDB server. For example:((( | ||
| 6 | {{code language="xml"}} | ||
| 7 | <property name="hibernate.connection.url">jdbc:hsqldb:hsql://HOSTNAME:PORT/dbname</property> | ||
| 8 | {{/code}} | ||
| 9 | ))) | ||
| 10 | 1. Start or restart XWiki. | ||
| 11 | 1. Verify that XWiki starts and that its tables have been created on the remote server, for example by listing them with an HSQLDB client such as ##DatabaseManagerSwing##. |