-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grails Camel Routing Plugin Not recognising sendMessage #50
Comments
The documentation clearly says "The plug-in provides a new method, "sendMessage", to all Controllers and Services for sending messages to endpoints." however when I start typing this in InteliJ it does not resolve and is shown as 'Type Not Found' |
Have you tried any of the provided examples? Which version of grails are you using? |
Yes the code above I have tried is based on the documentation. I am using Grails 2.4.3, have a missed some sort of setup step? I was expecting to be able to see the output in the console in InteliJ but nothing is shown. |
Hi, So I installed everything again from scratch and used an older version of InteliJ and the simple example worked great. Next I tried a more complex example of calling a service, however the app fails on startup, I have put the Service, Route and sendMessage data below: Route
Service
sendMessage
The error I get when running the app is below:
I hope you can help. |
Ok so i removed the filter piece and the application loaded. However when the sendMessage got run I got the following error:
I then tried to add the bean manually using the following code but still get the same error:
|
I have not maintained this plugin for a while now but from the looks of it I'd say it is not compatible with this version of grails. Try an older version 2.0, maybe even 1.x |
Hi, I cannot revert the project to a previous version, is there any other way to get the plugin to pickup the Bean for processing? Thanks |
Hi, Ok I got it to work I inspected all beans currently loaded and corrected my call. This can be closed. Thanks |
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:
Then I proceeded to setup a call to this Route in one of my Controllers using the following 'sendMessage' command:
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
The text was updated successfully, but these errors were encountered: