I am using grails 3.0.4 and install-plugin doesn't work anymore. I have added routing plugin in gradle dependencies but I can use the command grails create-route as in the online examples. I have created my own route class in grails-app/routes but when I run grails doesn't seem to use the route at all. Is there extra config that I have to do like create a bean somewhere?
my class is as follows:
import org.apache.camel.builder.RouteBuilder
class TrackingMessageRoute extends RouteBuilder {
def grailsApplication
@Override
void configure() {
def config = grailsApplication?.config
from('seda:input.queue').to('stream:out')
from('mina2:tcp://localhost:553').to('stream:out')
}
}
The routing plugin has not yet been updated for Grails 3. See https://github.com/grails/grails-core/wiki/Grails-3-Priority-Upgrade-Plugins for the Grails 3 readiness status of several important plugins.
Since Grails 3 is closely tied to Spring boot, it should be relatively easy to use Camel libraries directly (without need for a plugin). See http://camel.apache.org/spring-boot.html for potentially helpful info.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments