Hi,

I would like to know if this is possible to enrich the message(s) (by adding
a property or a header) created during a transformation step. 

ex :
        from("file:///c:/temp/test?noop=true")
        .unmarshal().csv()
        .to("test-jms:queue:test.queue");

According to this DSL route, the files created in the dir c:/temp/test will
be read, parsed and transformed using a CsvDataFormat. Next, the result of
this tranformation will be placed into a queue (test.queue).

My question is the following ?

Is it possible to add a property/header to the messages posted in a queue ?

        from("file:///c:/temp/test?noop=true")
        .unmarshal().csv()
        .setProperty("Client", "Jack")
        .to("test-jms:queue:test.queue");

The idea is that in the next route, I can check the property/header name and
depending on the value I can process differently the messages.

Regards,

Charles

-- 
View this message in context: 
http://www.nabble.com/How-can-I-add-a-property-during-a-transformation-step-tp16117586s22882p16117586.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to