Reputation: 2668
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.
Upvotes: 0
Views: 483
Reputation: 121262
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?
Upvotes: 2