1

This question is regarding "Spring Integration" using JdbcTemplates and not usual Spring with JdbcTemplates (for which several examples are available on the web).

I have been following up with documentations and examples for Spring-Integration with JDBC Outbound Gateway. These all are fine for basic sql queries. Also the documentation says that Spring-Integration can work either with dataSource (examples provided) or a jdbcTemplate (examples not provided).

Basically, I wanted to know, if we want to implement a batchUpdate (which is available in jdbcTemplate), how should we specify? Lets say, if we have the following Spring-Context file?

linuxeasy
  • 6,269
  • 7
  • 33
  • 40

1 Answers1

1

Spring Integration does not currently support batch JDBC updates. But, you can easily use a JdbcTemplate within your code (a POJO) and invoke it using a <service-activator/>.

Gary Russell
  • 166,535
  • 14
  • 146
  • 179