Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Passing Job Parameters to ItemWriter with Late Binding

  1. #11
    Join Date
    Apr 2010
    Posts
    6

    Default

    From the currently posted content, there is no 'file:' and the exception is 'Caused by: java.io.FileNotFoundException: class path resource ', that is why I thought the problem was caused by it.

  2. #12
    Join Date
    Jan 2007
    Posts
    13

    Default

    Victor,
    I already have get/set methods for secondInput. I am enclosing my project. Let me know if you find something odd in the code.


    Thanks,
    Praveen
    Attached Files Attached Files

  3. #13
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    You have a mixture of Spring 2.5.6 and Spring 3.0 in there. If you add an explicit dependency on spring-context and spring-aop I think it will work. (The sample project is fixed in trunk by the way, it just didn't make it to STS yet.)

  4. #14
    Join Date
    Jan 2007
    Posts
    13

    Default

    Dave,
    It worked after adding explicit dependency. I did not pay attention to the indirect dependency. I just checked spring-core and spring-beans versions and thought everything was OK. I was looking more at job initialization and job config files. Thanks for pointing out. I can move forward now.

    Thanks

  5. #15
    Join Date
    Apr 2010
    Posts
    6

    Default

    Dave,
    Is there any examples for using late-binding, especially for files. Maybe I missed something, but I didn't find a real helpful example. I also spent a lot of time to make it work for me.

  6. #16
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    I think all the file I/O samples use late binding (https://fisheye.springsource.org/bro.../jobs/iosample), as do some others.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •