Skip to end of metadata
Go to start of metadata

Description

A binary store which persists content in MongoDB.

Configuration

JSON

To use the MongoDB binary store you need to make sure the MongoDB Java Driver is available in the classpath. We recommend using the ModeShape embedded BOM which defines the required version for this artifact

Starting with ModeShape 5.3, instead of host and port one can also configure multiple host addresses, which means that clustered MongoDB servers are also supported. For example:

host and port are still supported, but a hostAddresses array value with a single element will behave just like a single host and port

JBoss AS

To use the MongoDB binary store you need to make sure the MongoDB Java Driver is installed as a separate module in the Wildfly Server and that ModeShape can access this module. To get the correct version for the artifact, we recommend using the ModeShape AS BOM which defines the required version number.

As with the JSON config, starting with 5.3 a host-addresses attribute is also supported which can be used to configure multiple MongoDB servers:

Attributes

Name Required Configuration Description
host if hostAddresses not provided JSON and JBoss AS the MongoDB server address
port if hostAddresses not provided 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
hostAddresses if host and port not provided JSON and JBoss AS The array (or comma separated list) of host:port entries representing multiple MongoDB servers

plus the common attributes described here

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.