MongoDB databases

MongoDB (from humongous) is a scalable, high-performance, open source NoSQL database. Liberty provides configuration support for MongoDB Java™ driver Version 2.10.0 or later.

Stabilized feature: The Liberty mongodb-2.0 feature is stabilized. The MongoDB Java driver versions 2.10.0 to 2.14.2 that the feature supports are no longer in service. Instead of using the mongodb-2.0 feature, create a CDI producer for Mongo. The CDI producer can use any Mongo version that meets your requirements.

This feature enables use of the MongoDB Java Driver and allows DB instances to be configured in the server configuration, injected into managed components such as EJBs, and looked up in JNDI. Applications interact with these DB instances using the normal MongoDB APIs.

Liberty provides a mongo-2.0 feature that you can use to configure MongoDB instances and associated database connections for your applications. Access to MongoDB connections is available either by Java Naming and Directory Interface (JNDI) lookup or resource injection, as with other product resources. All actual database manipulation is performed by the native com.mongodb API.

The MongoDB server and client MongoDB driver are not available with the product. You must download, install, and configure the MongoDB database servers and client drivers.