In the Camel-Su's MyRouteBuilder.java, we have this code 
public void configure() {

        // TODO create Camel routes here. For example:-
        //
        // from("activemq:test.MyQueue").to("file://test");
        from("jbi:service:http://nsn.com/q3/common/COMMONROUTER";)
        
        .choice()
        .when(header("Destination").isEqualTo("ToQ3Transformer_Dec"))
        
------------------------------------------------------------------
I have a custom binding componet
I created a su from this custom bc
I set the targetService in this su as Camel-Su.
 But before the messageExchange goes to Camel from BC,
 I want to set the header.

But I found only a setProperty() method for the exchange.

----------------------------------------------------------------
How do we actually set a header to a messageExchange in a custom binding
component


-- 
View this message in context: 
http://old.nabble.com/How-to-add-a-header-to-the-exchange-in-the-binding-component-tp28668115p28668115.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to