Hi

Yeah I think Hadrian is on top of this, he need to email the Nabble
guys about the Camel move.


On Wed, Feb 11, 2009 at 2:26 PM, Jon Anstey <jans...@gmail.com> wrote:
> Hmmm.... looks like my response to this question didn't make it to the old
> mail list. I sent to users@camel.apache.org but it looks like nabble is only
> showing stuff from camel-u...@activemq.apache.org
>
> On Mon, Feb 9, 2009 at 1:15 PM, Jon Anstey <jans...@gmail.com> wrote:
>
>> Try using a bean expression in a choice route
>>
>> from("direct:start").choice()
>>   .when().method("myBean", "bodyContainsOne").to("mock:x")
>>   .otherwise().to("mock:y");
>>
>> where the bean looks like
>>
>> static class MyBean {
>>     public static boolean bodyContainsOne(@Body String messageBody) {
>>         return messageBody.indexOf("1") >= 0;
>>     }
>> }
>>
>> On Mon, Feb 9, 2009 at 1:06 PM, pevgen <pev...@km.ru> wrote:
>>
>>>
>>> Hello.
>>> How can I create a "content router", if I want to analize a string message
>>> body.
>>>
>>> i try to explain my wish by java-like example :
>>>
>>> String messageBody = "test 1";
>>> if (messageBody.indexOf("1")>=0) then ... messageBody will be sent to an
>>> "Endpoint1"
>>> else ...messageBody will be sent to an "Endpoint2".
>>>
>>> thanks.
>>> Evgeny
>>> --
>>> View this message in context:
>>> http://www.nabble.com/content-router-question-tp21916527s22882p21916527.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>> --
>> Cheers,
>> Jon
>>
>> http://janstey.blogspot.com/
>>
>
>
>
> --
> Cheers,
> Jon
>
> http://janstey.blogspot.com/
>



-- 
Claus Ibsen
Apache Camel Committer

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

Reply via email to