java - How to run program that sends bills to customers once a month? -
I have a table in the database that is with users and their expenditure for travel. I am using GWT and trying to run a code once a month, which would inquire the database and send the bill to the customers PDF. I know how to create PDFs and send email from servlet. How is a program run in Java (or some other scripts if Java is not possible) which will run once a month?
Tnx
Unix and derivatives: use cron ->
Windows: Use the task scheduler ->
If you want to get fancy and do it purely in Java: ->, but consider the first OS scheduler.
Comments
Post a Comment