File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes java batch process parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java batch process parameters" Watch "java batch process parameters" New topic

java batch process parameters

Chidu Chidambaram

Joined: Sep 18, 2003
Posts: 7
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.
Sanjeev Kaushik
Ranch Hand

Joined: Aug 01, 2002
Posts: 105
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

Sanjeev Kaushik
Don't get me started about those stupid light bulbs.
subject: java batch process parameters
It's not a secret anymore!