> I'd like to use my grailsApplication.config properties in a static
> namedQueries. I'm using grails 1.3.7, is this possible?
No. Ideally all 'static' contexts in Grails would have the
grailsApplication bean available to them, but that's not the case.
What you could do is create your own static configuration holder class
and initialise it in BootStrap.groovy. Yes, it's not good "practice"
but it solves the problem with ConfigurationHolder since your own
class is private to your own web application. The biggest problem with
ConfigurationHolder is that the class and it's data can easily be
shared between multiple Grails applications in the same VM.
Hope that helps,
Peter
--
Peter Ledbrook
Grails Advocate
SpringSource - A Division of VMware
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email