Hi,
Is there any way of determining the scope of the current bean? I have a stateful custom spring-batch component. This means that the bean definition should always be configured with...
Type: Posts; User: jpraet; Keyword(s):
Hi,
Is there any way of determining the scope of the current bean? I have a stateful custom spring-batch component. This means that the bean definition should always be configured with...
I think you will have problems with restart if you are using a footer callback to write the </RootChild> (same reason why in StaxEventItemWriter the root tag is closed with the BufferedWriter instead...
You should be able to add these elements with a StaxWriterCallback header callback:
...
Probably related to the version of xstream / jettison you are using.
See...
Thanks, I got it working by changing @target to @within.
Hi,
I have following AOP configuration:
<aop:config>
<aop:aspect id="operatorAuditAspect" ref="operatorAPIAuditor">
<aop:pointcut id="auditedOperation"...
Which error do you get when using @Qualifier? Because that should be the fix to resolve ambiguous autowire candidates.
You also need to set the END_TIME of the job execution.
You can inject the values directly from the ExecutionContext into the header callback with SpEL expressions if you use scope="step".
<bean id="headerCallback" class="MyHeaderCallback"...
You can access the line number in the LineMapper: http://static.springsource.org/spring-batch/apidocs/org/springframework/batch/item/file/LineMapper.html#mapLine%28java.lang.String,%20int%29
Exceptions thrown from a StepExecutionListener.afterStep() have no effect on the execution, they will only be logged. You can return ExitStatus.FAILED from the listener though, which will fail the...
Just make it 2 seperate steps: the first step does the control check, the second step writes the records to the DB.
From what I can see FlatFileItemWriter does not guarantee that data is physically written to disk. The FlatFileItemWriter calls flush() and the javadoc states the following:
If you want to...
Only solution I can currently think of is creating a ProcessingItemReader<I, O> that implements ItemReader<O> and has an ItemReader<I> and ItemProcessor<I, O> configured as delegate. In the read...
Stopping a job via the JobOpertor API results in a JobInterruptedException being thrown as following stacktrace indicates:
28-okt-2011 20:38:58...
You can configure the writers with transactional=false. See http://forum.springsource.org/showthread.php?115318-TransactionAwareBufferedWriter
I have a batch job with commit-interval 100 that calls an external webservice in the ItemProcessor. Sometimes, when this external webservice is under heavy load, the response times are such that we...
Multi-threaded steps will execute the whole step (ItemReader, ItemProcessor and ItemWriter) in parallel. This is often problematic because ItemReaders and ItemWriters are not thread-safe, and even...
Thanks for the quick response.
When you configure the transactional property with a value of false, a regular BufferedWriter is used. If there is a problem during write/flush, an exception is...
The FlatFileItemWriter uses a TransactionAwareBufferedWriter by default. The TransactionAwareBufferedWriter delays writing to the underlying buffer to the point where the transaction is actually...