I'm trying to make it sending out email alerts when the number of attempt reach certain threshold or the maximum. So I created a class similar like SimpleRetryPolicy to implement my own logic in...
Type: Posts; User: JayJay; Keyword(s):
I'm trying to make it sending out email alerts when the number of attempt reach certain threshold or the maximum. So I created a class similar like SimpleRetryPolicy to implement my own logic in...
You're right, Dave. I can use the constructor taking a collection of exception classes. It works now. The only thing is that the email alert I coded in canRetry() will repeat multiple times. So, I'm...
In Spring batch 2.04, I made a simple tasklet become retryable through AOP by customizing the SimpleRetryPolicy in which it did more works like sending email alert if it reached the maxAttemp. But...
Thanks, Dave! I see the code in header.ftl. It references some variables through spring.messageText, i.e. @spring.messageText code="company.name"
So, where can I define the messageText with...
The batch admin is a great product, well done, guys.
One question, in the "Extending the UI" section of batch admin reference, I don't see the content for "modifying the content of the existing...
Great, thanks a lot, Dave. Happy holiday to all Spring folks and Spring fans!
Thank you, Dave. This is exactly what I'm looking for. Is there a target date yet for 2.1 release? I'm trying to get the 2.1.0.M3 but couldn't find it. The links on the...
Each one will take 3 steps which mean I'll need to repeat the steps for all. Certainly you can config 15 steps in one job, I just don't feel it's efficient enough.
Dave, I have a similar case but not exactly the same. I need to download 5 files from the same ftp site and save them to database every day. Now I just configure it as one job and pass in different...
I imported the aop config in each job's config file. It ended up applying the advisor twice. That's why it kept retrying for a while.
I configured two jobs running in the same container, both need to retry the file downloading tasklet if the file is not available. But it seems like the two retry contexts are interfered each other...
Now I have problem to configure chunk to retry. For example my FlatFileItemReader is configured to load a daily csv file on a ftp site, I'd like it keep trying until the file is available.The...
We have the similar job and it works perfectly fine with UrlResource for FlatFileItemReader. We're using Spring batch 2.0.4
I wish it's in next release. The work around we're using is AOP, hope this help-
<aop:config>
<aop:pointcut id="batchJobRetry"
expression=" execution(*...
Thanks, Dave. From the 3.0 reference, it does look cool by using the namespace for cron scheduling. It's perfect for scheduling of executing a method of an object. But the question is how I can wire...
Agreed. I assumed the whole purpose of Spring Batch is trying to make developers life easier, isn't it? If you need to schedule hundreds of overnight jobs, and make them restartable if it fails,...
One of the important piece of batch job is scheduling. I don't have any problem to follow the quartz-job-launcher-context.xml example. But imagine if we have hundreds of jobs, we'll have to repeat...
Hi Dave,
Is the feature of "carring named properties between steps" in the latest version?
Instead of creating your own reader, why not just implement PreparedStatementSetter and set it as property for JdbcCursorItemReader?