This is a deployable MongoDB source for Spring XD.
Build it:
./gradlew clean buildModule
Unzip the library
unzip build/distributions/mongo-1.0-SNAPSHOT.zip -d $XD_HOME/modules/sources/mongo
Stream data
xd:>stream create --name mongodump --definition "mongo --host=localhost --port=27017 --databaseName=test --collection=testData --query={'something':{$gt:0}} | log" --deploy
A query parameter must be specified, lest a NPE occurs (to be fixed).
- document cleanup support
- tailable cursor streaming
- tests