Dec 3rd, 2011, 06:08 AM
CompositeItemWriter - Register all delegate writers as streams dynamically
Based on my understanding in order to write data to multiple destinations (text file) you will use the CompositeItemWriter class. Also, all delegate writers must be explicitly registered as streams in order for the framework to handle them correctly.
What if I want to register all delegate writers as streams dynamically? For instance, the number of delegate writers will be pulled in the database.
Please let me know what is the best approach for this kind of scenario.
Thanks in Advance.