Hi Adish,
You simply need to load context to start scheduler. You can do it in the following way:
Code:
public static void main(String[] args) throws SQLException
{
try {
String [] params = new String[args.length + 1];
params[0] = "quartz-job-launcher-context.xml";
System.arraycopy(args, 0, params, 1, args.length);
ApplicationContext context = new ClassPathXmlApplicationContext(params);
System.out.println("Batch is configured and scheduled to run!");
} catch (Exception e) {
log.error("Can't start batch", e);
}
}
You need to specify job file names you want to run as command line arguments.
Regards,
Igor