Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java batch process parameters

 
Chidu Chidambaram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a java program to query a DB2 database and create an email to be sent to people registered for an application.
I want to run this program automatically every few minutes from the server. How would I go about doing this. I need help to get the parameters right for the JDBC connection and the classpath on a batch file. If I can get the parameters to use to execute the java program from a batch file, that would be real helpful.
Thanks
 
Sanjeev Kaushik
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use cron jobs on the unix/linux machine. On windows you can add a task in the scheduled task.
This link can help you in cron job
http://www.webmasters-central.com/t/cron.shtml
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic