Oracle GoldenGate recommends that you use the 3.2.2 MongoDB Java Driver integration with MongoDB using mongo-java-driver-3.2.2.jar
. You can download this driver from:
http://mongodb.github.io/mongo-java-driver/
Topics:
The MongoDB Handler uses the native Java driver release 3.2.2 APIs (mongo-java-driver-3.2.2.jar
). The handler should be compatible with the 3.X.X driver. You must include the path to the MongoDB java driver in the gg.classpath
property. The Java driver can be automatically downloaded from maven central repository by adding the following in the pom.xml
file as in the following example:
<!-- https://mvnrepository.com/artifact/org.mongodb/mongo-java-driver --> <dependency> <groupId>org.mongodb</groupId> <artifactId>mongo-java-driver</artifactId> <version>3.2.2</version> </dependency>