prana
Feb 13th, 2008, 06:16 AM
Hi ,
I have been trying to write different batch. I finished writing Hello World batch. It does not do anything but implements a tasklet .
I have some queries
- Can i directly work with spring batch framework without studying basic spring framework ?
- Now i want to go further and explore other features of batch processing like retryable batch job.
I could find code snipplet which gives basic retrying feature from www.springframework.org ,
RetryTemplate retryTemplate = new RetryTemplate();
retryTemplate.setRetryPolicy(new SimpleRetryPolicy(5));
Object result = retryTemplate.execute(new RetryCallback() {
public Object doWithRetry(RetryContext context) throws Throwable {
// do some processing
return result;
}
});
If i want my batch to be retriable , where exactly this code has to be placed ?
Where can i get samples .?
Awaiting for some light.
I have been trying to write different batch. I finished writing Hello World batch. It does not do anything but implements a tasklet .
I have some queries
- Can i directly work with spring batch framework without studying basic spring framework ?
- Now i want to go further and explore other features of batch processing like retryable batch job.
I could find code snipplet which gives basic retrying feature from www.springframework.org ,
RetryTemplate retryTemplate = new RetryTemplate();
retryTemplate.setRetryPolicy(new SimpleRetryPolicy(5));
Object result = retryTemplate.execute(new RetryCallback() {
public Object doWithRetry(RetryContext context) throws Throwable {
// do some processing
return result;
}
});
If i want my batch to be retriable , where exactly this code has to be placed ?
Where can i get samples .?
Awaiting for some light.