Spring Batch and Spring Integration
I want to use Spring Batch and Spring Integration to import data from database and write them into a file and ftp them to a remote server. But I guess my problem is I don't want to create Domain Object for my table. My queries are random and I want something that just reads the data and writes it to files and transfer. Can I use Spring Batch and Integration without creating respective domain objects? Absolutely. You can use either of the JDBC ItemReader s or the JPA ItemReader with a ColumnMapRowMapper to retrieve a Map of the result set. You can use the FlatFileItemWriter pretty simply to