I'm outputing data to a file using an XML Writer in SpringBatch. it needs me to inject a file into it. What I'd like is for that file to have a timestamp, like so:
Where [timestamp()] is a function or something dynamic. ${Properties} are of course possible but they are static.Code:<bean id="outputFile" class="org.springframework.core.io.FileSystemResource"> <constructor-arg value="${OUTPUT_DIR}/output.[timestamp()].xml" /> </bean>
I'm not just interested in timestamps but also an answer to the general question of supplying dynamic values into spring context files


Reply With Quote
