Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java as a batch job

Status
Not open for further replies.

neltan

Programmer
Nov 4, 2002
82
AU
Hi java user,

Q1. I would like to synchronize data from mssql to postgresql in a schedule job. I did this by VB use Windows scheduler. Can java do this also? OS may be Linux or Window.

Q2. Can jsp ask OS to run this scheduler immediately? Is there any API for jsp to request OS performing the action?

Q3. Any new technology that make java generate exe like VB, that do not need java runtime?

Thanks !!

Eric
 
Q1. I would like to synchronize data from mssql to postgresql in a schedule job. I did this by VB use Windows scheduler. Can java do this also? OS may be Linux or Window.

Answer: You can run a Thread which will wait for a certain time period and then run the process again.

Q2. Can jsp ask OS to run this scheduler immediately? Is there any API for jsp to request OS performing the action?
Answer: Yes you can do this using the Thread. Instantiate the thread and then call the start method

Q3. Any new technology that make java generate exe like VB, that do not need java runtime?
Answer: Java2Exe is what you are looking for. Search in Google for this Utility
 
Is it good using .jar as the VB.exe?

Can it been call from linux shell script like this:
java -jar test.jar parameter1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top