Hi

Yeah this should be easier from Camel 2.9 onwards as you can specify
the binding in the uri directly
So that should be, to use the 1 parameter method:
 <to uri="bean:rabbitTemplate?method=convertAndSend(*)"/>

Unfortunately for older releases its a bit more tricky. What people
maybe have done in the past is to use an intermediate java object,
which then would call the intended method, or to add annotations etc.
to the bean.


On Tue, Nov 8, 2011 at 6:17 PM, Michael Prieß
<mailingliste...@googlemail.com> wrote:
> Hello,
>
> me again. I looked on the following page
> http://camel.apache.org/bean-binding.html but found only a solution to
> call a method overloaded method from JAVA DSL.
>
> But I like to use the Camel-Spring XML way like
>
> <from uri="direct:start" />
> <to uri="bean:rabbitTemplate?method=convertAndSend"/>
>
> and call the method convertAndSend(Object); but alltime the method
> convertAndSend(Object, Object) is called and throw me a
> AmbiguousMethodCallException.
>
> So how can I specify in my example the method convertAndSend(Object);
>
> The object objects are only placeholder.
>
> Cheers,
>
> Michael
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to