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

Popular posts from this blog

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -

gtk - Python Window Resize -

c# - read full xml file data over tcp -