Nice !
It looks a lot cleaner than passing things to the jobContext map !
Thanks for the tip ;-)
Type: Posts; User: psoares; Keyword(s):
Nice !
It looks a lot cleaner than passing things to the jobContext map !
Thanks for the tip ;-)
Hi Ton,
Thank you very much ! I'll look into this first thing tomorrow at work and compare it with what I did.
I managed to solve my problem by defining a job with sequencial steps, corresponding...
Hello !
I've created a job with partitionned steps in this way :
<batch:job id="partitionJob">
<batch:step id="step1" next="step2">
...
How are you trying to run these jobs ? From an IDE ? From the commandline ?
Maybie you are just missing some configuration class... your missing beans (datasource, transactionmanager...) may be...
Hi,
My understanding is that the step scope is for beans that can participate in a step (ItemReaders, ItemWriters, Itemprocessors, etc.).
A PropertyPlaceHolder configurator does not seem to fall in...
I found out what my problem was.
I was calling my job in a script this way :
#!/bin/bash
typeset inputFile=$1
[...]
java org.springframework.batch.core.launch.support.CommandLineJobRunner...
Hi !
I built a job to process multiple huge xml gzipped files in parallel and write each input file to a distinct tsv file. For that, I use MultiResourcePartitionner.
Everything works well when I...
I knew this couldn't be that difficult :p. I know groovy is great for building markup, so I decided to give it a try, and I managed to achieve the same results in a single step using this spring...
Hi Emilio,
It can be achieved with some work with a 2-step flow.
First, check this part of the documentation.
So, following this, I took a concrete example with a simple object called "Author",...
Maybie I misunderstood your point, but why don't you create a custom ItemProcessor like the one below and leave your itemwriter as it is ?
import java.util.ArrayList;
import java.util.List;
...
I added an exclusions block to the spring-batch-core to exclude spring-core, spring-beans, spring-aop, spring-context and spring-tx, then I added those dependencies with version 3.0.5.RELEASE.
...
Sorry for my lack of maven expertise, but I've declared spring framework 3.0.5 in my pom file, and what I have now is both versions 3.0.5 and 2.5.6 as dependencies of my project.
I also went to...
Hello,
Sorry if I missed a thread that already discussed this, but I've downloaded the latest STS and I can't see the int-ftp namespace in the list of available namespaces...
...