I' m developing application in Java which is connected to database (Oracle or SQLite). In database I store contracts. The contract has field access_date
. And i want to check this field once every day and if one day access_date
will be equal to the current date then mark the contract as not valid. How can I implement this? In PHP as far as I know there are cron jobs for such tasks but what about java or java ee? How can I do this?Thanks in advance!
You can do this in two ways: