Orbeon Forms Postgres数据库连接 [英] Orbeon Forms Postgres DB connection

查看:118
本文介绍了Orbeon Forms Postgres数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将 Orbeon表单保存在 Postgres DB 中。我创建了数据库持久层,但表单仍存储在默认的 eXist DB 中。我已经从tomcat7的 Server.xml中创建了上下文(数据库源),并且已经在Orbeon4.8(orbeon / src / resources / config / properties-local.xml)中创建了 properties-local.xml文件)。我的参考是

I have tried to save the Orbeon forms in Postgres DB. I created data bases persistence layer but still forms are stored in the default eXist DB. I have created context(Data Base source) in the "Server.xml" from the tomcat7 and I have created "properties-local.xml" file in the Orbeon4.8 (orbeon/src/resources/config/properties-local.xml). My reference is this.

有人帮助我如何在Postgres DB中保存orbeon表单?

Some one help me how to save the orbeon forms in Postgres DB?

推荐答案

一旦配置了数据库资源,您就可以通过向属性-local.xml中添加如下内容来告诉Orbeon使用它:

Once the database resource is configured, you can tell Orbeon to use it by adding a like like this to your properties-local.xml:

<property as="xs:string"  name="oxf.fr.persistence.provider.*.*.*" value="postgresql"/>

您可以在 properties-form-runner.xml

仍然存在的示例表格。但是您可以使用以下命令禁用它:

Exist will still be used for the example forms. But you can disable it with:

<property as="xs:boolean" name="oxf.fr.persistence.exist.active" value="false"/>

如果需要使用默认名称以外的名称(例如,PostgreSQL)定义资源,则可以将需要提供如下所示的更多信息(切记将所有出现的pg_other_name替换为您的资源名称)。

If you need to define a resource with a name other than the default names (e.g. postgresql), you will need to provide more information as shown below (remember to replace all occurances of pg_other_name with your resource name).

<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"/>

这篇关于Orbeon Forms Postgres数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆