I have developed a Point of sale system for Mart in JAVA-SE using H2(embedded) database. Now i have requirement that my software could share daily sale reports with admin online, on email or on any other source, email first priority. I have no idea how it is possible. i want to design a function which could automatically send PDF generated report at a given time like at 11.00 PM.
so basicaly a cronjob for generating and sending the report. there are various java implementations for cronSchedulers available like quartzScheduler
or you could go for a os side solution and use the cronjobs of your server (works at least for debian)