Hi,
I would like to know, how should I be able to dynamically set the output file name with the timestamp and write to a desired destination.
currently iam hardcoding it like this,
<beans:bean id="flatFileWriter" class="org.springframework.batch.item.file.FlatFil eItemWriter">
<beansroperty name="resource" value="file:d:/SAMPLE-200709.txt" />
<beansroperty name="lineAggregator">
<beans:bean class="org.springframework.batch.item.file.transfo rm.DelimitedLineAggregator">
<beansroperty name="delimiter" value=","/>
</beans:bean>
</beansroperty>
I want this file name to be dynamic with my own PREFIX followed by date.(SAMPLE200709.txt)Any ideas................


roperty name="resource" value="file:d:/SAMPLE-200709.txt" />
Reply With Quote