Dec 1st, 2009, 08:01 AM
Spring Batch for Excel: Need Current Resource Name
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
Dec 1st, 2009, 10:59 AM
Can you just copy the 2.1.0 MultiResourceItemReader code into your project?
Dec 2nd, 2009, 03:58 AM
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?
Dec 2nd, 2009, 09:07 AM
Dec 3rd, 2009, 07:47 AM
Thanks for the respons. I got the current resource
Aug 19th, 2011, 02:18 AM
can you please share us an idea or sample code to read excel file using spring batch
thanks for any urgent help
Sep 5th, 2011, 10:50 PM
I would really helpful if you can you please share your code for processing excel in spring batch.
Has support for excel added in recent versions of Spring Batch ?