Grails 3.2.x datasource per deployment

50 Views Asked by At

As

Holders.grailsApplication.mainContext.servletContext.getRealPath("/")

is not available anymore in application.groovy in recent Grails versions, I wonder how to get dynamic (webapp-name-dependent) datasources working again?

see

https://github.com/grails/grails-core/issues/10131

the same applies for Holders with the extend that in runtime.groovy, Holders.grailsApplication is not available so I cannot find a way to set properties with values related to the context path. Now I try to find a way to get our deployment scenario (same webapp deployed on same server, but each has another datasource)

0

There are 0 best solutions below