Hi,

I am trying to invoke a method from my route configured with camel-spring to
persist the consumed message to DB.

my route is like,
<camel:route>
  <camel:from uri="queue:foo" />
  <camel:bean ref="foo" method="save" />
  <camel:to uri="queue:foo-saved" />
</camel:route>

The bean class Foo has two methods, which are overloaded.

e.g.

public void save(Collection<Foo> foos) {}

public void save(Foo foo) {}

When the consumer starts listening to the message, I am getting
AmbiguousCallException. 

I can change my method name and make it works. But I would like to know if
there were more elegant way to handle this.

Thanks in advance.

- SK
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Problem-with-bean-overloaded-method-invocation-in-route-tp2643591p2643591.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to