Search:

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

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    5,608

    I got it working as it should in order to meet...

    I got it working as it should in order to meet our requirements.

    Here's some stuff that I hope it will help!

    The two problems that I needed nail down were:
    A- the job has to iterate thru a set...
  2. I'm using 2.0.0. I've just tried with 2.1.0...

    I'm using 2.0.0.

    I've just tried with 2.1.0 with same result.

    It looks to me that the source of the problem resides in the TransactionSynchronizationUtils class (that is part of the...
  3. UnmappableCharacterException has no effect on job's status

    Hi,

    I've been thru a case where some invalid character is triggering the following exception: java.nio.charset.UnmappableCharacterException: Input length = 1

    When I look at the stack trace...
  4. Replies
    7
    Views
    1,082

    Have a look at this: 4.1.2. Intercepting Job...

    Have a look at this: 4.1.2. Intercepting Job execution
  5. Replies
    7
    Views
    1,082

    Hello, You can implement and register a...

    Hello,

    You can implement and register a JobExecutionListener. There's an "afterJob" method which has a JobExecution parameter. The JobExecution has an "ExitStatus" property.

    Gino.
  6. Mapping a variable length record with nested records

    Hello,

    My batch process needs to process an input file with the following specifications:

    structured as delimitted;
    each line can be of variable length (more on this below);
    each line is...
  7. jaenswart, I've done something similiar by...

    jaenswart,

    I've done something similiar by moving the SQL statements into Stored Procedures using iBatis and SpringBatch's iBatis classes.

    It works just fine!

    Regards,

    Gino.
  8. Replies
    8
    Views
    1,958

    For late-binding, have a look at this doc:...

    For late-binding, have a look at this doc: http://static.springsource.org/spring-batch/reference/html-single/index.html#late-binding
  9. Replies
    8
    Views
    1,958

    Zico, From what I understand from your...

    Zico,

    From what I understand from your example, you can do all the work in a single step by specifying an itemProcessor:


    <beans:bean id="myStep" parent="simpleStep">
    <beans:property...
  10. Replies
    5
    Views
    1,342

    Brian, I'm the one who initiated the post you...

    Brian,

    I'm the one who initiated the post you refer to.

    For what I understand from your post, my requirements were different than yours but for my specific needs, it has been solved using the...
  11. Replies
    1
    Views
    862

    Footer validation use-case

    Hello,

    I have to implement the following use-case:

    Tasks:

    Read input file
    Write valid records to output file
    Write invalid records to rejected records file
    Read the footer from input...
  12. Replies
    5
    Views
    1,328

    It works now! After re-reading the docs, I've...

    It works now!

    After re-reading the docs, I've stumble on page 39 (5.1.9) where it says that when you're using a composite writer, you need to declare all the "delegate" writers as streams.

    I've...
  13. Replies
    5
    Views
    1,328

    In fact, based on a suggestion...

    In fact, based on a suggestion, I created a "CompositeItemWriter" by extending FlatFileItemWriter. I added an itemWriter property for each output file. In the write method, I select, based on some...
  14. Replies
    5
    Views
    1,328

    Late-binding and Partitioning

    I've set up a configuration that use a PartitionStep in order to use a single step to process multiple input files the same way.

    In fact, this thread is a followup from a previous post suggesting...
  15. Replies
    9
    Views
    1,762

    I'm using Spring-Batch 2.0.0.RC1. Here's the...

    I'm using Spring-Batch 2.0.0.RC1.

    Here's the log including the scope package:

    [2009-02-24 11:24:55,265] INFO [com.mycompany.MyJobRunner]#[main] Processing of file [file1.csv] started. ...
  16. Replies
    9
    Views
    1,762

    Making the inner beans inside the main itemWriter...

    Making the inner beans inside the main itemWriter scope="step" does not change anything from the result.

    But following your logging hint from the Jira makes it more explicit about the problem:
    ...
  17. Replies
    9
    Views
    1,762

    Thanks Dave. I've implemented a simple class...

    Thanks Dave.

    I've implemented a simple class that uses the JobLauncher found in the context and it was easier thant the avenue that I took before your advice.

    But there's one thing that is not...
  18. Replies
    9
    Views
    1,762

    Ok. Your answer is a little bit confusing now......

    Ok. Your answer is a little bit confusing now...


    1- I tought that the Job launcher was the highest level of abstraction I could have in order to repeat an entire job multiple times? Are you...
  19. Replies
    9
    Views
    1,762

    Late-binding is too early?

    Hello,

    I'm trying to use late-binding for jobParameters but it seems like the late-binding is interpreted before I specify the "dynamic" parameter.

    This Post follows one of my previous post...
  20. Replies
    12
    Views
    5,608

    Well, things are progressing: I've...

    Well, things are progressing:

    I've successfully passed my "file name" parameter:

    [SimpleJob: [name=myJob]] launched with the following parameters: [{timeInMilliseconds=1235070782983,...
  21. Replies
    12
    Views
    5,608

    It is almost working now... The JobLauncher...

    It is almost working now...

    The JobLauncher implementation is a great idea and is pretty simple to implement!

    But I still have an issue with passing each file to be processed as JobParameter.
    ...
  22. Replies
    12
    Views
    5,608

    Thanks Guys for the hints! I've implemented...

    Thanks Guys for the hints!

    I've implemented the "composite item writer" solution and it works fine! I only had to add a flag in the "item" class that indicate which file it has to be written to...
  23. Replies
    12
    Views
    5,608

    Multi-file input and ouput

    Hello,

    I have a requirement that I don't know how to handle.

    I have to read from multiple input files. For each input file, I have to write to a different output file (with same name but...
Results 1 to 23 of 23