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

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

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

    Comment


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

      Comment


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

        Comment


        • #5
          Ok thanks for answers !

          Comment


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

            Comment


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

              Comment

              Working...
              X