Reputation: 227
When I try to use MongoDB driver in my play framework application's application.conf as
db.default.driver=com.mongodb
I am getting Driver not found
error. I have configured dependency in Build.scala for MongoDB driver.
I am using official Java driver for MongoDB mongo-java-driver
v 2.11.1. I want this driver to be used with Ebean.
What is the correct class name to be used in the db.default.driver
to get this working?
Upvotes: 3
Views: 3189
Reputation: 310
Click [here](https://github.com/ReactiveMongo/Play-ReactiveMongo"ReactiveMongo Support to Play! Framework 2.3")!
This is a plugin for Play 2.3, enabling support for ReactiveMongo - reactive, asynchronous and non-blocking Scala driver for MongoDB.
ReactiveMongo is a scala driver that provides fully non-blocking and asynchronous I/O operations.
ReactiveMongo-link ReactiveMongo
Upvotes: 0
Reputation: 16439
EBean doesn't support MongoDB, it only works with relational databases as it is a JPA-compliant driver.
Here you have an example using Java and MongoDB which may help you to bootstrap your project
Upvotes: 7