How to add MongoDB data source in Orbeon

这一生的挚爱 提交于 2019-12-01 11:31:02

First note that support for MongoDB is at this point very much experimental. It is implemented as a servlet in MongoDBPersistence.scala, so you'll want to:

  1. Edit Orbeon's web.xml declare that servlet in a <servlet>, and map /fr/service/mongo/* to that servlet with a <servlet-mapping>.
  2. Add a property telling Form Runner to use the MongoDB persistence layer: e.g. <property as="xs:string" name="oxf.fr.persistence.provider.*.*.*" value="mongo"/>.
  3. Add a property telling Form Runner what the URI of the MongoDB persistence layer is, e.g. <property as="xs:anyURI" name="oxf.fr.persistence.mongo.uri" value="/fr/service/mongo"/>.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!