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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.