I'm using the jdbc inbound-channel-adapter with a typical configuration as below to retrieve records from MYSQL DB. The question is how to make the jdbc inbound-channel-adapter work in a multiple nodes environment? Different nodes will have chance to get one same record to process. I know this may be a old questions but I cannot find the resolution so far.
<int-jdbc:inbound-channel-adapter query="select * from messages where state='NEW'"
channel="jdbcChannel" data-source="datasource" update="update messages set state='PROCESSING' where id in (:id)"
row-mapper="messageRowMapper" max-rows-per-poll="1">
</int-jdbc:inbound-channel-adapter>