Oele Geirnaert – Config DataSource.groovy

Dear All,

Today i figured out how to configure your DataSource.config file to make a connection to you MongoDB when your application is hosted on Jelastic.

You can find this config @PasteBin: Oele Geirnaert – Config DataSource.groovy

Don’t forget to install the MongoDB plugin (grails > install-plugin mongodb) and to disable the hibernate plugin.
You can disable this plugin by going to your  BuildConfig.groovy file and remove the line runtime “:hibernate:$grailsVersion”.
But as always, it’s much better to comment this line (as kind of back-up) instead of removing…

Kind Regards,
Oele