Search:

Type: Posts; User: jpraet; Keyword(s):

Search: Search took 0.03 seconds.

  1. how to determine the scope of the current bean?

    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...
  2. Replies
    4
    Views
    219

    I think you will have problems with restart if...

    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...
  3. Replies
    10
    Views
    391

    You should be able to add these elements with a...

    You should be able to add these elements with a StaxWriterCallback header callback:
    ...
  4. Probably related to the version of xstream /...

    Probably related to the version of xstream / jettison you are using.

    See...
  5. Thanks, I got it working by changing @target to...

    Thanks, I got it working by changing @target to @within.
  6. Proxy created for beans that do not match the pointcut expression

    Hi,

    I have following AOP configuration:



    <aop:config>
    <aop:aspect id="operatorAuditAspect" ref="operatorAPIAuditor">
    <aop:pointcut id="auditedOperation"...
  7. Which error do you get when using @Qualifier?...

    Which error do you get when using @Qualifier? Because that should be the fix to resolve ambiguous autowire candidates.
  8. Replies
    6
    Views
    609

    You also need to set the END_TIME of the job...

    You also need to set the END_TIME of the job execution.
  9. You can inject the values directly from the...

    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"...
  10. You can access the line number in the LineMapper:...

    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
  11. Exceptions thrown from a...

    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...
  12. Just make it 2 seperate steps: the first step...

    Just make it 2 seperate steps: the first step does the control check, the second step writes the records to the DB.
  13. FlatFileItemWriter does not guarantee data is physically written to disk

    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...
  14. Replies
    1
    Views
    1,727

    Only solution I can currently think of is...

    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...
  15. JobInterruptedException when stopping a job

    Stopping a job via the JobOpertor API results in a JobInterruptedException being thrown as following stacktrace indicates:

    28-okt-2011 20:38:58...
  16. You can configure the writers with...

    You can configure the writers with transactional=false. See http://forum.springsource.org/showthread.php?115318-TransactionAwareBufferedWriter
  17. Replies
    1
    Views
    1,727

    chunk-completion-policy

    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...
  18. Replies
    1
    Views
    1,273

    Multi-threaded ItemProcessor

    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...
  19. Replies
    2
    Views
    266

    Thanks for the quick response. When you...

    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...
  20. Replies
    2
    Views
    266

    TransactionAwareBufferedWriter

    The FlatFileItemWriter uses a TransactionAwareBufferedWriter by default. The TransactionAwareBufferedWriter delays writing to the underlying buffer to the point where the transaction is actually...
Results 1 to 20 of 20