Hi!
Do you mean something like this:
HTML Code:
<int-jpa:inbound-channel-adapter entity-manager="entityManager"
jpa-query="from Foo"
max-number-of-results="10"
delete-after-poll="true"
channel="processFooChannel">
<int:poller fixed-rate="1000" task-executor="threadPoolTaskExecutor" max-messages-per-poll="10">
<int:transactional/>
</int:poller>
</int-jpa:inbound-channel-adapter>
?
Than you really need this one:
Code:
@SQLDelete(sql = "update Foo f set f.deleted = true where f.id = ?", check = ResultCheckStyle.COUNT)
In this case, if some another transaction tries to get the same Entity, it ends up with StaleObjectStateException.
HTH