简体   繁体   中英

Oracle database polling with MyBatis and Spring

need to monitor the column of a sql table if its value gets updated,this change needs to be captured in java program, based on the value, a method need to be executed like WatcherService is used in java for monitoring directory.

above requirement is to be achieved using mybatis and spring, Thanks in advance, any help would be much appreciated.

I would like to implement a listener like in this question : How to implement a db listener in Java

but using spring and mybatis, and needed a service like that of Java WatchService(which keeps monitoring directory changes).

Hope I explained the problem, please let me know if need more explanation.

The solution you mention does not use the generic JDBC interface MyBatis & Spring use to communicate with the database. This solution makes explicit references to the Oracle JDBC driver .

I don't think it's possible to use the specific Oracle API using MyBatis. But you are free to use the driver as the example shows; there's no limitation on it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM