JPA consumer in clustered FSW 6 environment
Issue
- There is a
SwitchYard
service that reads all unread posts from a database with aJPA binding
. Users are setting a flag in the database to tell that a row is read. This service is used in a clustered environment, two servers behind a load balancer. - Is it possible that the two servers can read the same rows from the database?
- Would it be possible to use `lockEntity to fix this kind of issue ? What is the downside to this?
- Is there a recommended solution?
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.