Search:

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

Search: Search took 0.06 seconds.

  1. Replies
    6
    Views
    7,839

    Thanks Vito. The problem was with the path. I...

    Thanks Vito. The problem was with the path. I have a relative path, so it created the file in the root directory of the eclipse project that i was running this code from.

    Anyway, the issue was...
  2. Put the file name in JobExecutionContext in step...

    Put the file name in JobExecutionContext in step 1. you can access this in step 2 by implementing one of the listeners (StepExecutionListener).

    something like:

    ...
  3. Replies
    6
    Views
    7,839

    Hi Vito, I was already using FileSystemResource...

    Hi Vito,
    I was already using FileSystemResource for fileLocator. Again, as i mentioned in my previous post, the issue was with the location of the file. :)
  4. Replies
    6
    Views
    7,839

    Thank you Ballistic. Actually, the issue was with...

    Thank you Ballistic. Actually, the issue was with the location of the fixed length file. It was writing to a different directory.

    To your question of trimming and padding, I can see 2 quick...
  5. Replies
    6
    Views
    7,839

    How to use FlatFileItemWriter?

    I am trying to read from database and write to a file.
    Here is the config i took from one of the samples:


    <bean class="org.springframework.batch.item.file.FlatFileItemWriter"...
  6. Replies
    6
    Views
    3,267

    Thanks lucas. I was including two versions of...

    Thanks lucas. I was including two versions of ojdbc14.jar. That caused the conflict.
  7. Replies
    6
    Views
    3,267

    I was thinking the same too... that's the...

    I was thinking the same too... that's the database version.

    But I checked the version as per this link:
    http://download.oracle.com/docs/cd/B10501_01/java.920/a96654/getsta.htm#1006402

    Please...
  8. Replies
    6
    Views
    3,267

    Lucas, i tried the sql in toad, and the query...

    Lucas, i tried the sql in toad, and the query works just fine.
  9. Replies
    6
    Views
    3,267

    Unable to use JdbcCursorItemReader

    I am trying to use JdbcCursorItemReader as a reader and then write to a flat file.

    When i run the job, i get the following error:

    ...
  10. Actually I am looking for a solution to the...

    Actually I am looking for a solution to the following problem:
    http://forum.springframework.org/showthread.php?t=54679
  11. I am not sure I got it Lucas. Here is my config,...

    I am not sure I got it Lucas. Here is my config, i took the delegatingReader example from multilineOrderItemJob


    <bean id="staging" parent="simpleStep">
    <property name="commitInterval"...
  12. how about the same with a customReader?

    hey Lucas, how to access the same in a CustomReader that extends a DelegatingItemReader.

    I tried implementing StepExecutionListener with no luck.
  13. Replies
    7
    Views
    2,067

    Oh, i almost forgot, the queue is just an...

    Oh, i almost forgot, the queue is just an ArrayList that holds the records from file and shared across by using ExecutionContext.
  14. Replies
    7
    Views
    2,067

    //Out of the box, there isn't anyway to process...

    //Out of the box, there isn't anyway to process multiple steps simultaneously. You could put all 5 steps in separate jobs and launch them in parallel though.//

    lucas,
    we modified the...
  15. Looks like i have to include the taglib...

    Looks like i have to include the taglib declarations even in the inner tile... that's a bummer :(
  16. Using Tiles with Spring. Inner tile not detecting the included taglib.

    Hi all,
    I am trying to use Tiles with Spring.
    Here's my tiles-def.xml:


    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD...
  17. figured it out

    it was classpath error. there were multiple versions of some library files.

    HTH somone.

    -S
  18. I checked out the source code for...

    I checked out the source code for JavascriptValidatorTag. The error being thrown is on the highlighted line:


    Map vars = field.getVars();
    // Loop through the field's...
  19. Commons Validation giving NullPointerException when using "vars"

    Hello all,

    I am trying to use spring modules' commons validations with Spring. Everything works fine when i do not use "vars" (Variables in form field validations).

    I always get the following...
Results 1 to 19 of 19