RationaleBy default, Orbeon Forms ships with an embedded eXist database. For production, this is not an ideal setup and it is better to have a separate eXist database, whether:
Here we look at how to deploy a separate eXist WAR file. Creating a separate eXist WAReXist as of version 1.4 no longer ships with a separate WAR file, but it is reasonably easy to create one. Assume the following:
Modifying the eXist configurationLocation of eXist data filesInstead of storing the eXist data files under the eXist WAR, specify a separate location, for example:
To do this, modify the files and journal-dir attributes in ~/exist-war/WEB-INF/conf.xml:
The benefit of this is this is that upgrading the eXist WAR file will be easier: you can:
Setting Unix permissionsWhen deploying eXist as a WAR file, it will run using the Unix user of the servlet container. Often, this is a user called e.g. tomcat. You need to make sure that user can write:
Creating a separate eXist user for Orbeon FormsTo do so, you can use the eXist database administration tool: Steps:
Default resource permissionsBy default, eXist allows everybody to read newly created collections and resources. This might not be desirable. To protect Form Runner resources from other users, uncomment and set the following configuration in ~/exist-war/WEB-INF/conf.xml:
This will cause new collections and resources to be only fully accessible through user orbeon.NOTE: With this setting, other users in the group orbeon can read Form Runner resources and collections too, although this is not currently useful.Configuring full-text indexingOrbeon Forms 3.8, Form Runner uses the eXist legacy full-text index. This worked out of the box with eXist 1.2, but With eXist 1.4, you must create a configuration file to enable this:
Since 2011-01-04 builds, including Orbeon Forms 3.9 builds, Form Runner uses the Lucene-based full-text index. Here too you need to store a
See also the latest version of this file on GitHub. NOTE: Without this configuration, free-text search in the Form Runner summary page won't work. NOTE: Full-text indexing is configured by default in the sample database that comes with Orbeon Forms starting 2011-01-18. Configuring Form RunnerThe last step is to tell Form Runner how to connect to eXist. Set the following property in the Orbeon properties-local.xml file:
This assumes:
NOTE: the password is available in clear in properties-local.xml. You must make sure that there is no unauthorized access to that file. Resulting setupAfter this setup, your file hierarchy looks like this:
In addition:
|
