Is there a way to listen for changes to a MySQL database table using Java and JDBC?

I have several users who are simultaneously registered in my working application. They work on one table (create, read, update, delete data), so I have to update their views to reflect the changes every few seconds - at present I am thinking of using a different thread for this.

I am using the MySQL database engine.

Is there a way to use JDBC to listen for changes in a specific table in the database and run the Java method only when changes are made?

+5
source share
1 answer

, mysql async - .

, , - .

+6

All Articles