Spring Batch is a framework for Java enterprise batch processing.
This project offers support for accessing a MongoDB NoSQL datastore from your Spring Batch batch jobs. It provides a
Have a look at this blog post for further details: Spring Batch and MongoDB.
After cloning the project run
mvn clean javadoc:javadoc install
from the command line. To execute the unit tests you need a running MongoDB server on your local machine listening on the standard port 27017. You can override the location to your MongoDB server by passing the following arguments to Maven:
mvn -DargLine="-Dhost=anotherHost -Dport=4711" test
There are examples how to use the reader and writer in your batch jobs:
- MongoDBItemReaderJobTest and MongoDBItemReaderJobTest-context.xml
- MongoDBItemWriterJobTest and MongoDBItemWriterJobTest-context.xml
This project depends only on