What's New in Spring Integration 2.2.RC1 (Part 1 - MongoDb)
Introduction
Spring Integration 2.2.RC1 is out and we will be coming out with a set of blogs in the coming days discussing some of its new features. In this first blog we'll talk about MongoDb Inbound and Outbound Channel Adapters. Full set of discussed samples is available hereMongoDb Outbound Channel Adapter
MongoDb Outbound Channel Adapter allows you to write the Message payload to a MongoDb document store.You can see the simplest configuration of the MongoDb Channel Adapter below:
<int-mongodb:outbound-channel-adapter id="deafultAdapter"/>
It will be initialized with the default instance of the MongoDbFactory (the default bean name is 'mongoDbFactory') otherwise you can provide its reference via mongodb-factory attribute.
Now you can run the MongoDbOutboundAdapterDemo. After running it open terminal window and start MongoDb CLI
$> mongo
Once in MongoDb CLI type a query:
> db.data.find({})
And you should see the 3 document entries we just created:
{ "_id" : ObjectId("505ff83d03649ed6881d…
