Po skonfigurowaniu zasobu bazy danych możesz powiedzieć Orbeonowi, aby go używał, dodając podobny do tego do pliku właściwości-local.xml:
<property as="xs:string" name="oxf.fr.persistence.provider.*.*.*" value="postgresql"/>
Możesz zobaczyć domyślną konfigurację nazw zasobów, które Orbeon akceptuje po wyjęciu z pudełka w properties-form-runner.xml.
Exist będzie nadal używany w przykładowych formularzach. Ale możesz to wyłączyć za pomocą:
<property as="xs:boolean" name="oxf.fr.persistence.exist.active" value="false"/>
Jeśli chcesz zdefiniować zasób o nazwie innej niż domyślne (np. postgresql), musisz podać więcej informacji, jak pokazano poniżej (pamiętaj, aby zastąpić wszystkie wystąpienia pg_other_name nazwą zasobu).
<property as="xs:string" name="oxf.fr.persistence.provider.*.*.*" value="pg_other_name"/>
<property as="xs:anyURI" name="oxf.fr.persistence.pg_other_name.uri" value="/fr/service/postgresql"/>
<property as="xs:string" name="oxf.fr.persistence.pg_other_name.datasource" value="pg_other_name"/>
<property as="xs:boolean" name="oxf.fr.persistence.pg_other_name.create-flat-view" value="true"/>
<property as="xs:boolean" name="oxf.fr.persistence.pg_other_name.autosave" value="true"/>
<property as="xs:boolean" name="oxf.fr.persistence.pg_other_name.permissions" value="true"/>
<property as="xs:boolean" name="oxf.fr.persistence.pg_other_name.versioning" value="true"/>