JBoss Community Archive (Read Only)

ModeShape 4

MongoDB

This is first available starting with ModeShape 5.0

Description

A binary store which persists content in MongoDB.

Configuration

JSON

"storage" : {
        "binaryStorage" : {
            "type"  : "mongo",
            "host" : "localhost",
            "port" : 100,
            "username" : "test",
            "password" : "test",
            "database" : "test"           
        }
    }

JBoss AS

 <repository name="sample">
    <mongo-binary-storage database="test" host="localhost" port="100" password="test" username="test"/>  
  </repository>

Attributes

Name

Required

Configuration

Description

host

yes

JSON and JBoss AS

the MongoDB server address

port

yes

JSON and JBoss AS

the MongoDB server port

username

no

JSON and JBoss AS

the name of user with which to connect to the MongoDB server

password

no

JSON and JBoss AS

the password of user with which to connect to the MongoDB server

database

no

JSON and JBoss AS

the name of the database where to store binaries. Defaults to ModeShape_BinaryStore

plus the common attributes described here

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 12:10:03 UTC, last content change 2016-03-23 10:18:00 UTC.