Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8664

Update MongoDB Java Driver from 2.13.1 to 3.0.0

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.16.0
    • camel-mongodb
    • None
    • Unknown

    Description

      I think we have to update the MongoDB driver to the 3.x family. There are some changes, related to our component, to note:

      • WriteResult
        The getLastError method in WriteResult has been removed: this method does not work reliably in the 2.x series and there is no way to make work reliably, so it has been removed. Replace with use of an acknowledged WriteConcern when executing the write operation.
      • DBCollection
        The ensureIndex methods in DBCollection have been removed: replace with the corresponding createIndex method.

      From: http://mongodb.github.io/mongo-java-driver/3.0/whats-new/upgrading/

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            acosentino Andrea Cosentino
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: