Announcement Announcement Module
Collapse
No announcement yet.
Spring Batch for Excel: Need Current Resource Name Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Can you just copy the 2.1.0 MultiResourceItemReader code into your project?

    Comment


    • #3
      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

      Comment


      • #4
        https://fisheye.springsource.org/bro...er.java?r=HEAD

        Comment


        • #5
          Thanks for the respons. I got the current resource

          Comment


          • #6
            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

            Comment


            • #7
              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!

              Comment

              Working...
              X