How to detect database events using, for example, Java

Is there a way to detect database events, for example. insert, update and delete, comparable to file access monitors such as JNotify (can you read, create, modify files and directories)?

Looking for something like database event listeners, because I don't want to do polls.

Thank!

+3
source share
2 answers

In general, no. AFAIK, such a mechanism does not exist in JDBC or in SQL standards.

, / . , Java , pubsub, .

, .

+2

, , , , , - , .

, , AspectJ .

0

Source: https://habr.com/ru/post/1759240/


All Articles