Skip to content

Couchbase Specific Properties

Devender Yadav edited this page Oct 10, 2017 · 2 revisions

Couchbase specific properties can be added via XML file. Add this property to persistence.xml

<property name="kundera.client.property" value="kunderaCouchbaseTest.xml" />

Where kunderaCouchbaseTest.xml is your xml file.

Supported Properties

  • bucket.password - password needed to open a particular bucket.

  • bucket.quota - RAM quota for a particular bucket. It will be 100 MB (by default) if not defined.

Sample XML file:

<clientProperties>
   <datastores>
      <dataStore>
         <name>couchbase</name>
         <schemas>
            <schema>
               <name>couchbase_db</name>
               <properties>
                  <property name="bucket.password" value="any-password" />
                  <property name="bucket.quota" value="200" />
               </properties>
            </schema>
         </schemas>
      </dataStore>
   </datastores>
</clientProperties>

Refer kunderaCouchbaseTest.xml.

Clone this wiki locally