You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Milan Milanov <mi...@null.net> on 2015/10/26 14:58:56 UTC
Using Jackrabbit Oak with MongoDB java driver v3
Hello,
I’m trying to use Jackrabbit Oak in a Spring boot-based project, which uses some libraries that are dependent on version 3 of the mongo-java-driver. This, however, causes troubles with the Jackrabbit project, since it’s dependent on the not-compatible version 2 of the same driver. Even the “Getting started” snippet can’t be run, since MongoDocumentStore.java#L132/140/etc uses the ensureIndex, which is not available in the v3 driver. My question is have you come across this scenario, what would be your suggestion to handle it and do you have any plans to switch to the v3 of the driver.
Regards,
Milan Milanov
Re: Using Jackrabbit Oak with MongoDB java driver v3
Posted by Marcel Reutegger <mr...@adobe.com>.
On 26/10/15 15:56, "Marcel Reutegger" wrote:
>As for using Oak with a 3.x java driver, it would be best to create
>a JIRA issue and attach a patch, which replaces the deprecated calls.
See https://issues.apache.org/jira/browse/OAK-3555 for a first step
to remove usage of deprecated methods.
Regards
Marcel
Re: Using Jackrabbit Oak with MongoDB java driver v3
Posted by Marcel Reutegger <mr...@adobe.com>.
Hi,
Oak does not use any MongoDB 3.x features at the moment, which means
there was not need to upgrade the driver to 3.x so far. The driver
version used in trunk and on the 1.2 branch in Oak is 2.13.x. This
driver version is compatible with MongoDB 3.x and you can use Oak
in this combination.
As for using Oak with a 3.x java driver, it would be best to create
a JIRA issue and attach a patch, which replaces the deprecated calls.
Regards
Marcel
On 26/10/15 14:58, "Milan Milanov" wrote:
>Hello,
>
>I¹m trying to use Jackrabbit Oak in a Spring boot-based project, which
>uses some libraries that are dependent on version 3 of the
>mongo-java-driver. This, however, causes troubles with the Jackrabbit
>project, since it¹s dependent on the not-compatible version 2 of the same
>driver. Even the ³Getting started² snippet can¹t be run, since
>MongoDocumentStore.java#L132/140/etc uses the ensureIndex, which is not
>available in the v3 driver. My question is have you come across this
>scenario, what would be your suggestion to handle it and do you have any
>plans to switch to the v3 of the driver.
>
>Regards,
>Milan Milanov