This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
No announcement yet.
Writing to the multiple databasesPage Title Module
you can have multiple writers for the same step by using a composite writer, but as each writer will write to its own database and Spring Batch uses the same transaction manager for a whole batch, you'll need to use JTA transactions (or use a feature like synonyms to let the database engine demarcate transactions on both databases). This will also coupled the writers together (a failure for one will imply a rollback for both).
Perhaps you should use 2 different jobs, especially if the writes on each writer should be decoupled.