-
Dec 1st, 2009, 08:01 AM
#1
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
-
Dec 1st, 2009, 10:59 AM
#2
Can you just copy the 2.1.0 MultiResourceItemReader code into your project?
-
Dec 2nd, 2009, 03:58 AM
#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
-
Dec 2nd, 2009, 09:07 AM
#4
-
Dec 3rd, 2009, 07:47 AM
#5
Thanks for the respons. I got the current resource
-
Aug 19th, 2011, 02:18 AM
#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
-
Sep 5th, 2011, 10:50 PM
#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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules