title: listening to Mysql Table change events, for java
body: <p>I want to listen to mysql table change using java, the most available and used way of doing this is using triggers but in mysql triggers can't do much when come to my situation,(please correct if i'm wrong)</p>
  
  <p>my real scenario is this, i want to generate charts using mysql database and those charts should refresh when the mysql table is updated with a new row. so currently what i'm doing is running a separate thread watching the row count of the table and if the row count is changed then i create the chart!!!!!</p>
  
  <p>but i don't think that is a good idea if there is a better way, so is there a way that i can listen to mysql table changes?</p>