Add FAQ on thread safe item reader

This commit is contained in:
dsyer
2010-06-18 09:11:05 +00:00
parent f41af7bdcb
commit f3d894c74a

View File

@@ -74,6 +74,10 @@
</ul>
</answer>
</faq>
<faq id="threading-reader">
<question>How can I make an item reader thread safe</question>
<answer>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 as not restartable and to be safe (and efficient) you can also set saveState=false on the reader.</answer>
</faq>
<faq id="flexible">
<question>
What is the Spring Batch philosophy on the use of