I am trying to use MongoDB 4 in a spring boot application and trying to run on open liberty server. I searched for example and all show that we need to use CDI producer to use with any version of Mongo. The examples show that we can use with Microprofile. However I have a requirement to use in a spring boot application. Please see statement from IBM site.
The 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.
I searched stack overflow and found a similar sort of question. But the anwers provided again asks to use the CDI producer.
Container managed MongoDB Connection in Liberty + Spring Data
Appreciate help on whether it is possible to have a spring boot project accessing MongoDB4 to run on Open Liberty server.