Sorry, but for what I know, there's no any standard/clean way to receive asynchronous notifications from a DBMS whenever something changes.
It's not a problem of Java .... it's a thing that a DBMS...