-
May 7th, 2009, 08:09 AM
#1
JdbcCursorItemReader
Hi
Is the JdbcCursorItemReader thread-safe ?
I ask the question because if the verifyCursorPosition is true, the reader throws a exception.
(I'm using SB 2.0.0)
Thanks for answers.
-
May 7th, 2009, 02:01 PM
#2
A good rule of thumb is that nothing that implements ItemStream is thread safe (including JdbcCursorItemReader). That doesn't always have to be the case but it pretty much is right now. You can always work safely with those components in a partition though, with scope="step".
-
May 12th, 2009, 07:34 AM
#3
Thanks, Dave.
The partition is a good solution.
But something is strange, the majority of readers are not thread-safe and by default, a step is multi-threaded.
A JIRA seem to say it's difficult to configure a mono-threaded step.
(http://jira.springframework.org/browse/BATCH-1216)
Is it possible to configure a mono-threaded step with batch xml ?
-
May 12th, 2009, 07:54 AM
#4
I think you misunderstood the JIRA. The default is single-threaded.
-
May 12th, 2009, 07:55 AM
#5
-
May 12th, 2009, 09:31 AM
#6
Just one more question, I promise ! 
Could it be possible to contribute to this project ?
I didn't see any link to contribute on the site.
I follow this project since 6 months now and I think that I begin to unterstand correctly this framework.
Maybe can I help you to correct minor bugs or improvements to begin...
-
May 12th, 2009, 09:59 AM
#7
As with any Spring project (or open source for that matter) your immediate contribution path is to create patches and attach them to issues. You can do this through subversion. We can then review them, and make corrections if necessary before committing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules