From 7813e61100eb767bb1a920b9a538bbce3c01acda Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Fri, 26 Aug 2011 09:50:39 -0400 Subject: [PATCH] INT-2080 added initial Mongo support documentation --- docs/src/reference/docbook/mongodb.xml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/docs/src/reference/docbook/mongodb.xml b/docs/src/reference/docbook/mongodb.xml index 140fe85351..c51123d2e7 100644 --- a/docs/src/reference/docbook/mongodb.xml +++ b/docs/src/reference/docbook/mongodb.xml @@ -18,7 +18,7 @@ To begin interacting with MongoDb you first need to connect to it. Spring Integration uses support provided by another Spring project - Spring Data MongoDB which uses an all familiar Spring's ConnectionFactory. - abstraction to simplify integration with MongoDB Client API. + abstraction to simplify integration with MongoDB Client API. MongoDbFactory @@ -63,8 +63,9 @@ As you can see SimpleMongoDbFactory takes two arguments; A connection object Mongo and String specifying the name of the database. -If you need to specify properties such as host, port etc, you can pass those using one of the constructors provided by Mongo. -For more information on how to configure please refer to Spring-Data-Document reference documentation. +If you need to specify properties such as host, port etc, you can pass those using one of the constructors provided by Mongo. +For more information on how to configure please refer to +Spring-Data-Document reference documentation. @@ -86,24 +87,21 @@ For more information on how to configure please refer to - + + - + ]]> + message-store="mongoDbMessageStore"/>]]> - Above is a sample RedisMessageStore configuration as well as its usage (QueueChannel and Aggregator). As you can see it is a simple - bean configuration injected with RedisConnectionFactory via constructor. + Above is a sample MongoDbMessageStore configuration as well as its usage (QueueChannel and Aggregator). As you can see it is a simple + bean configuration injected with SimpleMongoDbFactory via constructor. - - By default RedisMessageStore will use Java serialization to serialize the Message, however if you want to use different serialization technique (e.g., JSON) - you can provide your own serializer via valueSerializer property of RedisMessageStore. \ No newline at end of file