I have a table in database which contains start date and end date. Now what I need to do is that database should be checked once at night checking all end dates. if today is the day before the end date, then I can execute a java class that will send the email notification saying membership will expire. I am using oracle database and java (jsf) as development language.
My date stored in the table is in my preferred format i.e. MM/DD/YYYY.
Thanks,
Schedule a job using
DBMS_SCHEDULERto run a PL/SQL procedure at an interval you desire. The PL/SQL procedure can then call your java method to send the email notification.