Using Grails 2.2.1
I have the following Grails services:
package poc class TestService { def helperService } class HelperService { }
I used TestService as follows (resources.groovy):
test(poc.TestService) { } jmsContainer(org.springframework.jms.listener.DefaultMessageListenerContainer) { connectionFactory = jmsConnectionFactory destinationName = "Test" messageListener = test autoStartup = true }
Everything works, except for automatically entering helperService, as expected when the service creates Grails. The only way to make it work is to manually enter it as follows:
//added helper(poc.HelperService) { } //changed test(poc.TestService) { helperSerivce = helper }
The problem is that it is not introduced the same way Grails does. My actual maintenance is quite complicated, and if I have to enter everything manually, including all the dependencies.
source share