How can I set a lock in a column (field) in DB using Spring Integration (XML) using jdbc-inbound-adapter?
The reason is to avoid concurrency problems while multiple processes are accessing the same db.
How can I set a lock in a column (field) in DB using Spring Integration (XML) using jdbc-inbound-adapter?
The reason is to avoid concurrency problems while multiple processes are accessing the same db.
What you need is out of Spring Integration responsibly and it is called SELECT ... FOR UPDATE
. See answer here:
When to use SELECT ... FOR UPDATE?