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

Posted by adrian7 on Stack Overflow See other posts from Stack Overflow or by adrian7
Published on 2010-04-21T12:10:38Z Indexed on 2010/04/21 12:13 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

I have a number of users which are logged in at a time in my desktop application. They are working on the same table (create, read, update, delete data) so I have to update their views, to reflect changes, every few seconds - currently I am thinking to use a different thread to do that.

I am using the MySQL database engine.

Is there a way, using JDBC, to listen for changes on a specific table in the database and triggering a Java method only when changes are made?

© Stack Overflow or respective owner

Related posts about jdbc

Related posts about mysql