views:

81

answers:

5

I want to run a Java program on a specific date. I am developing a J2EE application that allows you to schedule Selenium test launch (JUnit) on a specified date..

Are there any solutions to do this? can you point me to technology that can help me to do this? any help is appreciated:) thanks for your help

+3  A: 

You provided very little information. You can schedule launch in scheduler of your operating system (like cron in Linux), or you can run a task from within your Java process, if the process is constantly running. For this see Quartz Scheduler.

Konrad Garus
I apologize for the amount of information that I provided, I want to be as brief as possible ... in fact I am developing a J2EE application that allows you to schedule Selenium test launch (JUnit) on a specified date.. thank you to all those who try to help me
Then you should look for scheduling or timer services of your JEE container, or use Quartz on your own.
Konrad Garus
Apparently Quartz gives great opportunity,I will consider this solutionthank you again for your help
A: 

You could use crond or Windows Task Manager.

Pablo Santa Cruz
A: 

If you have a Java process running from now to the time it needs to start, look at Quartz.

If you need to have a Java process started from nothing, you must ask your operating system to invoke it for you. For Linux check the "at" command.

Thorbjørn Ravn Andersen
A: 

Cron on Unix, and Cron for NT on WindowsNT platforms (XP-Windows 7, Windows Server 4.0+).

Why reinvent the wheel?

Chris Kaminski
A: 

Not knowing enough details, I would recommend using Quartz. You can see an example of using it here.

CoolBeans