Do you know if it is possible to setup mongodb instance in spring like any other db via datasource from jndi?
Thx
To do this, you'll need a JDBC driver impl for MongoDB. I have only found one, and it's referred as "experimental" from the MongoDB page: GitHub JDBC Driver for MongoDB .
to workaroud this limitation, you could setup some Spring beans and create a MongoDB implementation for your application DAO (this way, you won't need to change the DAO interface and it's client components).
This articles may help: