ItemReader « Batch « Spring Q&A





1. Spring Batch - how to fail a job when the ItemReader returns no data    stackoverflow.com

I have a spring batch application which reads data from a DB table with JdbcCursorItemReader and writes it to a flat file with FlatFileItemWriter. When I test my application, I see ...

2. JobParameter & ItemReader    stackoverflow.com

i'm trying to access to the JobParameters in an itemReader, I followed the "Late Binding of Job and Step Attributes" in spring user guide, but can't make it work. Here is my ...

3. One ItemReader, 2 SQLs?    forum.springsource.org

One ItemReader, 2 SQLs? Hi, I have a requirement where I am reading from the database in two different steps. Each step has its own SQL. The SQLs are similar and ...

4. Spring Batch - how to terminate a job when the ItemReader returns no data    forum.springsource.org

Spring Batch - how to terminate a job when the ItemReader returns no data Hello, I have a spring batch application which reads data from a DB table with JdbcCursorItemReader and ...

5. Coding an ItemReader    forum.springsource.org

Coding an ItemReader Hello, I am newbie on Spring Batch, and I am working on a ETL solution at work. Basically, I need to process some files from different clients. Each ...

6. ItemReader that can pick messages from POP3    forum.springsource.org

ItemReader that can pick messages from POP3 Hi all, I am using Spring-Batch now for 3 - 4 months and I can call my self that I am aware of basic ...

7. Return DTO object from ItemReader    forum.springsource.org

Return DTO object from ItemReader Is it possible to return a DTO object from my ItemWriter? This is my Writer class Code: public class Transactionsriter implements ItemWriter { @Autowired private TransactionService ...

8. Spring Batch ItemReader control    forum.springsource.org

Spring Batch ItemReader control Hi, We have a simple scenario where we have to control the execution/ termination of the "ItemWriter" based on the file size of the file used by ...

9. Accesing JobParameter from an ItemReader    forum.springsource.org

Hi, It is not really clear in the doc how JobParameter can be accessed from the various components of the framework. For instance, I need to access a From/To date in ...





10. ItemReader array    forum.springsource.org

Hello, I have a special need, I have a special busness step when i load many data from tables to hashtables. I wand to execute the data loading in parallel mode ...

11. Itemreader    forum.springsource.org

i have this exception, can you help me : org.springframework.batch.item.ReaderNotOpenExcept ion: Reader must be open before it can be read. my dao classe where i use my itemreader Code: public class ...

12. Using SimpleAsyncTaskExecutor with ItemReader    forum.springsource.org

Using SimpleAsyncTaskExecutor with ItemReader Ok, i have tried to read through some of the threads and have tried a few different examples. But basically. My reader needs to read through a ...

13. How to generate more itemReader by one item    forum.springsource.org

My case is one item in batch file has scope, like GET:ABC,[10000-89999],EFG; One item will generate a lot of item (like GET:ABC,10000,EFG to further processing, how can I handle this ? ...

14. ItemReader commit not happenning    forum.springsource.org

I am experiencing a strange problem with Item Reader/Writer with Async Task Executor and SimpleStepFactoryBean. I tweaked the parallelJob (example) reader/writer implementation to suit my needs. I am able to run ...

15. Problem in using Validator with ItemReader    forum.springsource.org

Oct 30th, 2008, 12:53 PM #1 vbforums View Profile View Forum Posts Private Message Member Join Date Sep 2007 Posts 32 Problem in using Validator with ItemReader Ji, I am trying ...

16. Dynamically setting the resource in ItemReader    forum.springsource.org

I have the following scenario: User uploads a file via web and it is maintained in a byte array (no panic these files are not large on the server. Then a ...





17. How to configure ItemReader to read data one at a time    forum.springsource.org

How to configure ItemReader to read data one at a time Hi all I've the following requirements, I just wanted to know if this is possible using the HibernateCursorItemReader or any ...

18. How to keep track of the state of ItemReader    forum.springsource.org

How to keep track of the state of ItemReader Dear members: Here is my requirement. I have a CSV file with large amount of data. I need to read the file ...

19. SQLJ in Spring Batch (ItemReader)    forum.springsource.org

SQLJ in Spring Batch (ItemReader) HI all, I am a new joiner of Spring Batch. May I have your advice on Spring Batch SQLJ issue? I have tried the SQLJ package ...

20. Itemreader that does nothing    forum.springsource.org

Itemreader that does nothing hi All, I have some requirement, where i have to read n number of records based on some criteria, then process them and after processing all records ...

21. Nested ItemReader - How To    forum.springsource.org

Nested ItemReader - How To Hi Folks, I'm using the spring batch framework in order to read data from a database and generate a flat file. The main issue of the ...

22. ItemReader returning one list    forum.springsource.org

ItemReader returning one list I'm stucked with a probably little problem, I'd be glad if someone got an idea how to solve it: One step of my batch job is supposed ...

23. How to use ItemReader with XML input    forum.springsource.org

How to use ItemReader with XML input Hi, I'm currently trying to use the OXM framework with JaxbMarshaller to reproduce the test XmlFunctionalTests with another xml input. However I always get ...

24. ItemReader for FASTA files    forum.springsource.org

ItemReader for FASTA files Hello, I need an ItemReader for FASTA files. Unfortunately the format of FASTA files seems to preclude the use of FlatFileItemReader. The problem is that there is ...

25. Repalacing ItemReader resource with new input file    forum.springsource.org

Repalacing ItemReader resource with new input file (In short i want to delete a file after job has completed and reader has finished with it) I have successfully created a reader ...

26. Threadsafe ItemReader    forum.springsource.org

Threadsafe ItemReader Hi, I have configured a job to download a bunch of files. There is a job listener configured for this download job, which is launched after this job is ...

27. how to read next chunk through Custom ItemReader    forum.springsource.org

Feb 9th, 2010, 09:56 AM #1 kishorekumarramana View Profile View Forum Posts Private Message Junior Member Join Date Dec 2009 Location Philadelphia,USA Posts 18 how to read next chunk through Custom ...

28. ItemReader instance re-used ? Issue upgrading to 2.1.0 from 2.0.4    forum.springsource.org

ItemReader instance re-used ? Issue upgrading to 2.1.0 from 2.0.4 In the 2.0.4 version, a new ItemReader would be instantiated each time my job was executed. In 2.1.0, the SAME ItemReader ...

29. Itemreader read method while dealing with collections    forum.springsource.org

Itemreader read method while dealing with collections Hi, I have created custom item reader by implementing the ItemReader interface. From the read method i am calling a business method which will ...

30. Reading from XMl using Itemreader    forum.springsource.org

Reading from XMl using Itemreader Hi, I am using staxeventitemreader to read fragments from xml and then converting the fragments to object using unmarshalling in java using spring batch injection. While ...

31. ItemReader ref as jobparameters    forum.springsource.org

ItemReader ref as jobparameters Hi can any one help me I have got multiple itemwriters and item readers in my step , I need to read/write a particular item reader or ...

32. Making ItemReader threadsafe    forum.springsource.org

You can synchronize the read() method (e.g. by wrapping it in a delegator that does the synchronization). Remember that you will lose restartability, so best practice is to mark the step ...

33. Spring Batch ItemReader - read data from Socket    forum.springsource.org

I have a requirement for configuring a batch Job which will read data from the socket and write to a Database. I'm trying to figure out if there is a way ...

34. ItemReader thread restartability. documentation    forum.springsource.org

ItemReader thread restartability. documentation Hi i have 2 questions kind pof related hence posting in 1 post. i apologize if its confusing. 1. why does synchronizing the read method of item ...

35. Java proxy for ItemReader doesn't extend ItemStream causing problems with scoped bean    forum.springsource.org

Java proxy for ItemReader doesn't extend ItemStream causing problems with scoped bean I have a FactoryBean class that returns a JdbcCursorItemReader, this becomes an issue when running under scope="step" as a ...