Jan 24th, 2008, 10:50 AM
I am trying to understand the flow in the JobFuncaitonalTests.java.As it is extending AbstractValidatingBatchLauncherTests and that extending AbstractBatchLauncherTests,I am not able to understand which methods it's calling and in which order.If I want to schedule a batch job through windows scheduler then I need to create a .bat file that calls JobFuncationalTests or something similar to that but as it is running through JUnit I didn't know how to call that junit through command prompt.
Jan 24th, 2008, 11:25 AM
The unit tests are there for convenience when running the tests. There is a separate class for running for the command line. In Milestone 3 it's call BatchCommandLineJobLauncher. In Milestone 4 it was renamed to CommandLineJobRunner. However, keep in mind that these are very generic, and there are no garuntees they will fulfill all your needs. It's entirely possible that the best option will be to create your own bootstrap class, that works with the JobLauncher interface to launch jobs.
Jan 24th, 2008, 12:40 PM
I am struggling to write a bootstrap class that works with the JobLauncher interface to launch jobs.Can anyone please help me.
Last edited by arunaalluri; Jan 24th, 2008 at 02:17 PM.
Jan 24th, 2008, 03:09 PM
Have you looked at the BatchCommandLineJobLauncher? It may not fit your exact requirements, but it should serve as a good example.
Jan 25th, 2008, 10:23 AM
Thanks for the answers.I am able to write my own class to test and it is working.