Home Create Change Listeners for Various Databases in Java
Reply: 0

Create Change Listeners for Various Databases in Java

Vijeet Vergis
1#
Vijeet Vergis Published in 2017-12-06 11:49:10Z

I have a requirement where I want to register listeners to listen for change on a database (depending upon the client's preference, it can be any RDBMS), and to fire some Java code if any change has occurred. These changes may directly occur on the Database itself, and not necessarily use a JPA Repository. Hence, the Entity Listener option isn't a useful one. Having a thread constantly running to poll the database sounds like a very expensive method and one that uses a lot of resources. So I need some help in figuring out the best way to go about creating some sort of a Listener that may respond to changes in a database as and when it comes.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.330026 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO