Skip to content

Grails Camel Routing Plugin Not recognising sendMessage #50

@anixan

Description

@anixan

Hi All,

We have a project that we recently required the use of Camel in. This projects is a Groovy/Grails project and I have installed the Routing 1.4.1 plugin.

I then proceeded to create a new route as specified in the documentation which is shown below:

package some_package

import org.apache.camel.builder.RouteBuilder

class TestRoute extends RouteBuilder {
    def grailsApplication

    @Override
    void configure() {
        def config = grailsApplication?.config

        // example:
         from('seda:input.queue').to('stream:out')

    }
}

Then I proceeded to setup a call to this Route in one of my Controllers using the following 'sendMessage' command:

//Camel Testing
def message = "This is some history"
sendMessage("seda:input.queue", message)

However when typing in the IDE the 'sendMessage' method it does say 'Type Not Found' which says to me maybe I am missing an import of something but according to the documentation this should be available to all Controllers and Services.

I added debug and the code hits the sendMessage line however does not get into the routing method.

Can someone please help with this?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions