title: Database synchronization techniques JPA / GUI
body: <p>Good day everyone,I have Java application that use JPA (EclipseLink) for database access-some CRUD operation.How i can make synhronization in that case ? <br>I mean if two users User1 and User2 start application on they machine and User1 change some records how to make User2 see it ?  <b>Is there some opportunity make User2 know that User1 change record and update only that record ?</b>. <br>The same problems has discussed here <br><a href="https://stackoverflow.com/questions/9621308/how-to-synchronize-multiple-clients-with-a-shared-database-jpa">How to synchronize multiple clients with a shared database (JPA)?</a>. <br> <a href="https://stackoverflow.com/questions/7175044/updated-data-in-database-is-not-visible-via-jpa-eclipselink?rq=1">Updated data (in Database) is not visible via JPA/Eclipselink</a> <br>
  But the only what there suggest is to update by timer. Is it common way to do such things ?
  <br>Thank you for your help
  <br><b>[EDIT]</b>
  <br> <a href="https://stackoverflow.com/questions/11458091/monitor-mysql-inserts-from-different-application">Monitor MySQL inserts from different application</a> <br><a href="https://stackoverflow.com/questions/4594955/how-to-make-a-database-listener-with-java">How to make a database listener with java?</a> <br><a href="https://stackoverflow.com/questions/1639020/change-notification-on-domain-objects-hibernate-java">change notification on domain objects (Hibernate/Java)</a>
  <br> Show me direction in resolving my problem .Hope can help somebody.</p>