"storage" : { "binaryStorage" : { "type" : "mongo", "host" : "localhost", "port" : 100, "username" : "test", "password" : "test", "database" : "test" } }
This is first available starting with ModeShape 5.0
A binary store which persists content in MongoDB.
"storage" : { "binaryStorage" : { "type" : "mongo", "host" : "localhost", "port" : 100, "username" : "test", "password" : "test", "database" : "test" } }
<repository name="sample"> <mongo-binary-storage database="test" host="localhost" port="100" password="test" username="test"/> </repository>
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