From f3d894c74a789641ae438693f35fe445f4635683 Mon Sep 17 00:00:00 2001 From: dsyer Date: Fri, 18 Jun 2010 09:11:05 +0000 Subject: [PATCH] Add FAQ on thread safe item reader --- src/site/fml/faq.fml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/site/fml/faq.fml b/src/site/fml/faq.fml index bd3065e74..6c057ff3d 100644 --- a/src/site/fml/faq.fml +++ b/src/site/fml/faq.fml @@ -74,6 +74,10 @@ + + How can I make an item reader thread safe + 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. + What is the Spring Batch philosophy on the use of