Results 1 to 7 of 7

Thread: Spring Batch for Excel: Need Current Resource Name

  1. #1
    Join Date
    Nov 2009
    Posts
    9

    Unhappy Spring Batch for Excel: Need Current Resource Name

    Hi,

    We are using Spring batch 1.4 to upload multiple xls files to DB. I create a Reader class which extends MultiResourceItemReader. But in the open method of the Reader i want to get the current resource name(to open it by using POI).

    I know that Spring batch 2.1.0's MultiResourceItemReader has a method "getCurrentResouce" can solve the issue. But i can not move to spring batch 2.1(as it requires several approvals from Enterprise Architecture team).

    Can anybody helps me in getting the current resource? Is there is any work around? Its really urgent

  2. #2
    Join Date
    Feb 2008
    Posts
    488

    Default

    Can you just copy the 2.1.0 MultiResourceItemReader code into your project?

  3. #3
    Join Date
    Nov 2009
    Posts
    9

    Default

    Thanks for the response.

    I saw getCurrentResource() in spring batch 2.1.0 documentation. But unable to get the source file or jar file containing the class file. Can you anybody helps me in finding it out?

    Regards,
    Giridhar

  4. #4
    Join Date
    Feb 2008
    Posts
    488

  5. #5
    Join Date
    Nov 2009
    Posts
    9

    Default

    Thanks for the respons. I got the current resource

  6. #6
    Join Date
    Sep 2009
    Posts
    3

    Default

    Hi tsgsarma,

    can you please share us an idea or sample code to read excel file using spring batch

    thanks for any urgent help

    Regards,
    Pradeep

  7. #7
    Join Date
    Sep 2011
    Posts
    1

    Default

    Giridhar/tsgsarma,

    I would really helpful if you can you please share your code for processing excel in spring batch.

    Others,
    Has support for excel added in recent versions of Spring Batch ?

    Thanks!

Posting Permissions

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