I have a PostgreSQL database and a Java application which accesses this database using JDBC. Works just fine.
Now I have a table in the database, which is changed by some third party and I would like to get a notification from the database (over JDBC) to my Java application, if the data in this table is changed.
Currently I'm just checking the table in regular time intervals from my Java application (polling). But I think it's rather inelegant and generates some unnecessary traffic.
Is possible? And if yes, any pointers how I can achieve this?