Dynamic domain methods missing from grails service when injected into java service in grails app.
Posted
by Gordon C
on Stack Overflow
See other posts from Stack Overflow
or by Gordon C
Published on 2010-05-12T21:23:15Z
Indexed on
2010/05/13
6:24 UTC
Read the original article
Hit count: 260
I had the idea that I would write my GroovyDao as a grails service.
Next I would write a MyJavaService in java and locate it in the java sources dir in my grails app. MyJavaService contains a instance reference to groovyDao for spring injection.
I would wire up in resources.groovy the MyJavaService with a groovyDao = ref("GroovyDao").
Everything starts up fine.
However if I make call to MyJavaService any Domain method like Domain.list() returns a Method not found error.
Any help is appreciated.
© Stack Overflow or respective owner