Announcement Announcement Module
No announcement yet.
JdbcCursorItemReader Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • JdbcCursorItemReader


    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.

  • #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".


    • #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.

      Is it possible to configure a mono-threaded step with batch xml ?


      • #4
        I think you misunderstood the JIRA. The default is single-threaded.


        • #5
          Ok thanks for answers !


          • #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...


            • #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.