JPA consumer in clustered FSW 6 environment

Solution Unverified - Updated -

Issue

  • There is a SwitchYard service that reads all unread posts from a database with a JPA 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content