How to give in the context .xml for a MongoDb?..
posted 4 years ago
Are you referring to the applicationContext.xml? If you are using the BasicDAO from Morphia, you should extend it using your DAO implementation. Then you configure your extended DAO in your appContext.xml the normal way you would any normal Spring bean. If you are referring to the Connection object from Mongo, be sure that the Mongo connection you get is already connection pooled. Have a look here: