I am running the job using quartz. The intention is to trigger some service calls within the ear to do some plumbing tasks every hour.
I wasn't sure on how to pass the job parameters in my case but when I increased the time gap between the tasks and also removed the
Thread sleep in the samples, it wasn't spitting out JobExecutionAlreadyRunningException.
And it now triggers the job properly
com.test.JobLauncherDetails executeInternal Quartz trigger firing with Spring Batch jobName=footballJob
com.test.JobLauncherDetails executeInternal Quartz trigger firing with Spring Batch jobName=footballJob
com.test.JobLauncherDetails executeInternal Quartz trigger firing with Spring Batch jobName=footballJob
......
But now I don't see any entries in the Spring batch table, it doesn't seem to hit the reader/writer classes even though it isn't throwing any exceptions.
One more question, I was able to trigger my batch using Quarts example @
Quartz example. I keep hearing that Spring Batch is the ideal way to do this but can someone explain why using Batch is a better bet than using quartz in my scenario.