How to add MongoDB data source in Orbeon

前端 未结 1 1303
南旧
南旧 2021-01-14 21:38

How do I add a MongoDB data source to Orbeon CE? I have been browsing through all the xml config files without any luck and the Orbeon documentation doesn\'t help very much.

相关标签:
1条回答
  • 2021-01-14 22:10

    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"/>.
    0 讨论(0)
提交回复
热议问题