You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/07/07 00:07:03 UTC

[GitHub] [camel-quarkus] Namphibian commented on issue #1459: @Handler on Bean does not resolve method

Namphibian commented on issue #1459:
URL: https://github.com/apache/camel-quarkus/issues/1459#issuecomment-654523913


   Hi Team.
   
   I can get it to work by changing the method to:
   
   ```
   public class Greeter {
   
       
       public String say(Exchange exchange) {
           return "say hello world";
       }
   }
   ```
   
   However the ```@Handler``` is definitely buggy as the following code **wont work:**
   
   ```
     @Handler
       public String say() {
           return "say hello world";
       }
   ```
   
   Seems like _method selection is working based on the parameters passed_ to methods. If there is no parameters it should use the ```@Handler``` to select the method. Specifying the bean method in the bean Uri like this ```to('bean:greeter?method=say')```also works. 
    


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org