Pergunta

in my grails application i'd like to invoke from a scheduled job class a method contained in a controller.

Reading this [http://www.grails.org/Job+Scheduling+(Quartz)], I can see that datasources and services are auto-wired by name in job classes. It seems this is not possible for controllers by default, probably 'cause controllers aren't supposed to do this kind of stuff.

BTW, is there a way to get a controller method called from a job in grails? And could this be such a bad practice to you (and why)?

Thanks in advance, Luca

Nenhuma solução correta

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top