> For the complete documentation index, see [llms.txt](https://bpmflow.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bpmflow.gitbook.io/project/orbeon-integration/orbeon-persistence-layer-for-gemstone-s/install-persistence-layer.md).

# Install Persistence Layer

## Install Persistence Layer for GemStone/S

**Create the folder structure to store forms attachments**\
By default the attachment path is `/opt/orbeon-files/` in this directory execute:

```
cd /opt/
sudo mkdir orbeon-files
sudo chown gemstone orbeon-files/
cd orbeon-files
mkdir temp
mkdir drafts
mkdir instances
mkdir definitions
cd definitions/
mkdir saved
mkdir published
```

To change the default attachment path evaluate (and create the folder structure):

```
OrbeonApiConfiguration default baseAttachmentPath: 'myPathHere'
```

The whole project will be installed at:\
\&#xNAN;**/home/{username}/GsDevKit\_home/shared/repos/OrbeonPersistenceLayer**

**Installation Script**\
The following scripts will install **OrbeonPersistenceLayer** on **GemStone/S** named "**devKit\_351**" and start the Web Server. Update this script with the name used in your **GemStone/S** installation:\
`$ cd $GS_HOME/shared/repos/OrbeonPersistenceLayer/scripts`\
`$ sh install-all.sh devKit_351`\
`$ sh register-application.sh devKit_351`\
`$ sh start-all.sh devKit_351`

**Orbeon Properties-local.xml Configuration**\
In **Orbeon** in ***properties-local.xml*** file add the following options:\
(change the ip address of \[oxf.fr.persistence.gemstone.uri] to suit your needs)

```
<property as="xs:string" name="oxf.fr.persistence.provider.*.*.*" value="gemstone"/>
<property as="xs:anyURI" name="oxf.fr.persistence.gemstone.uri" value="http://192.168.29.133:8888/orbeon-gemstone-api"/>
<property as="xs:boolean" name="oxf.fr.persistence.gemstone.versioning" value="true"/>
<property as="xs:boolean" name="oxf.fr.persistence.gemstone.permissions" value="true"/>
<property as="xs:boolean" name="oxf.fr.persistence.gemstone.autosave" value="true"/>
<property as="xs:string" name="oxf.fr.persistence.gemstone.data-format-version" value="2019.1.0"/>
```

**Note**: only **2019.1.0 Format** is supported. Forms formats **4.0.0** and **4.8.0** will **likely** work without problems but **2019.1.0** is the official supported format.

If you are going to use **BPM Flow + Orbeon**  then also set:\
`<property as="xs:boolean" name="oxf.fr.persistence.gemstone.lease" value="false"/>`

If you are going to use only **Orbeon Persistence Layer** then set:\
`<property as="xs:boolean" name="oxf.fr.persistence.gemstone.lease" value="true"/>`

If you have any question about Orbeon:\
<http://discuss.orbeon.com/>\
\
If you have any question about GemStone/S:\
<http://forum.world.st/GLASS-f1460844.html>

\[See the video library here]\
&#x20;(<https://github.com/brunobuzzi/OrbeonPersistenceLayer/wiki/Persistence-Layer-Video-Library>)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bpmflow.gitbook.io/project/orbeon-integration/orbeon-persistence-layer-for-gemstone-s/install-persistence-layer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
