On Thu, Oct 22, 2009 at 10:21 AM, titexe <tit...@yahoo.fr> wrote:
>
> Thank you for your response,
>
> I receive messsage with this format
> - Header
> - Message Properties (Partner = PARIS)
> - Body
>
> I want to verify if PARIS exist in my XML file (c;\test.xml),
>
> 1- if OK i must route this message to queue PARIS,
> 2- if not i must route this message to queue error.
>
> Thank you in advance,
>

Its the classic Content Based Router EIP, see more at
http://camel.apache.org/content-based-router.html

Which should help you on the way.


> best regards,
>
> titexe
>
>
>
>
> Claus Ibsen-2 wrote:
>>
>> Hi
>>
>> Can you write more details as its not clear to me what you want?
>>
>> Camel can certainly consume a message (1), extract a header (2) using
>> xpath for example
>> And then in (3) why do you mean exactly?
>> And put a value in a header (4) on the message.
>>
>>
>>
>> On Wed, Oct 21, 2009 at 4:12 PM, titexe <tit...@yahoo.fr> wrote:
>>>
>>> Hi Everybody!
>>>
>>> I need to develop a camel route to do the following actions:
>>>
>>> (1) Get the Message, (2) Extracting value of partner from the header of
>>> the
>>> message [Message Properties], (3)check in the XML file value of this
>>> partner.
>>> and (4) put this value in the header of message [Message Properties].
>>>
>>> I've read the documentation, and I still don't have a clue on how to do
>>> this, I'm not even sure how to start  .
>>>
>>> Can anyone help me please?
>>>
>>> Thanks in advance.
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Camel%3A-Dynamic-routing-based-on-XML-File---tp25993330p25993330.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Camel%3A-Dynamic-routing-based-on-XML-File---tp25993330p26005850.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to