Hi,

I'm trying to pass exchange as a parameter and one more value using
following code but still not working. Is it possible to pass exchange as a
parameter when I call bean in my route xml? If so, how should I call it?
thanks

*<bean ref="headers" method="getHeaders(${exchange}, '300')"/> *

The function inside bean is below:

*public void getHeaders(Exchange exchange, String HeaderValue) {
                setHeader("Header1", HeaderValue, exchange);
                setHeader("Header2", HeaderValue, exchange);            
        }*

I got the error which is I can't use exchange as parameter. 

thanks in advance



--
View this message in context: 
http://camel.465427.n5.nabble.com/passing-exchange-and-other-value-as-parameters-tp5745031.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to