Hi,

i got a question about how to invoke a bean as an uri like this:

from("bean:MyBeanCall?method=beancallMethod(String1)")

The Consumer has to be dynamic and returns the URI as a String from the
bean. Inside the bean I want also use the @Header Annotation to add some
Header properties.

The working bean call looks like this:
.bean(MyBeanCall.class,"beancall('String1')");

The bean looks like this:
public static void beancall(String test, @Header("theHeader") String header,
@Header("JMSCorrelationID") String correlationID){...}

But I need the call inside the from() to generate the consumer with the
String1 and the Headers.

Does anybody has an idea?

Thanks so far!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Consume-from-a-bean-Endpoint-tp5784261.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to