Skip to content

Commit e57ec1d

Browse files
committed
Documented that the mongo-java-driver uber jar is required for OSGi-based applications.
JAVA-1807
1 parent 41c37c3 commit e57ec1d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/reference/content/driver/getting-started/installation-guide.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,20 @@ The MongoDB Driver is the updated synchronous Java driver that includes the
2222
legacy API as well as a new generic MongoCollection interface that complies with
2323
a new cross-driver CRUD specification.
2424

25+
{{% note class="important" %}}
26+
For OSGi-based applications: due to the fact that there are classes from the `com.mongodb` package in both this artifact and in the
27+
`mongodb-driver-core` artifact, on which this depends, this artifact is *not* an OSGi bundle. Please use the `mongo-java-driver` uber
28+
jar (described below) instead.
29+
{{% /note %}}
30+
2531
{{< install artifactId="mongodb-driver" version="3.0.1" dependencies="true">}}
2632

2733

2834
## Uber MongoDB Java Driver
2935
An uber jar that contains everything you need; the BSON library, the core library and the mongodb-driver.
3036

37+
{{% note %}}
38+
For OSGi-based applications: this artifact is a valid OSGi bundle.
39+
{{% /note %}}
40+
3141
{{< install artifactId="mongo-java-driver" version="3.0.1" >}}

0 commit comments

Comments
 (0)