org.mule.modules

mule-module-mongo

2.0
Namespacehttp://www.mulesoft.org/schema/mule/mongo-object-store
Schema Locationhttp://www.mulesoft.org/schema/mule/mongo-object-store/2.0/mule-mongo-object-store.xsd
Version2.0
Minimum Mule Version3.2

Module Overview

A PartitionableExpirableObjectStore backed by MongoDB.

Summary

Configuration
<mongo-object-store:config>
Configure an instance of this module

Configuration

To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:

<mule xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:mongo-object-store="http://www.mulesoft.org/schema/mule/mongo-object-store"
      xsi:schemaLocation="
               http://www.mulesoft.org/schema/mule/core
               http://www.mulesoft.org/schema/mule/core/current/mule.xsd
               http://www.mulesoft.org/schema/mule/mongo-object-store
               http://www.mulesoft.org/schema/mule/mongo-object-store/2.0/mule-mongo-object-store.xsd">

      <!-- here goes your flows and configuration elements -->

</mule>

This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necesary as long as each carries its own name.

Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.

Attributes
TypeNameDefault ValueDescription
xs:string name Optional. Give a name to this configuration so it can be later referenced.
xs:string database test Optional. The database name of the Mongo server
xs:string host localhost Optional. The host of the Mongo server
xs:string password Optional. The password used to connect to the Mongo server
xs:int port 27017 Optional. The port of the Mongo server
xs:string username Optional. The username used to connect to the Mongo server
writeConcern DATABASE_DEFAULT Optional. The default concern to use to when writing to Mongo