Eddy Bayonne
Eddy Bayonne

Reputation: 2668

Spring Integration: Jdbc-Inbound-adapter DB Lock

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

Answers (1)

Artem Bilan
Artem Bilan

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

Related Questions