This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
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.
I am running the StoredProcedureItemReader in a multithreaded fasion. I get the below error
Encountered an error executing the step
org.springframework.dao.InvalidDataAccessResourceU sageException: Unexpected cursor position change.
when I run in single threaded mode I dont have this issue....