You need to put "stuff" inside the <threads> tag.

<threads>
   XXX
</threads>

I think in one of the later Camel releases we have added validation
for that so you will get an error on startup.


On Thu, May 5, 2011 at 8:14 AM, Muhammad Ichsan <ich...@gmail.com> wrote:
> On Wed, May 4, 2011 at 8:47 PM, Muhammad Ichsan <ich...@gmail.com> wrote:
>> On Wed, May 4, 2011 at 7:26 PM, Claus Ibsen <claus.ib...@gmail.com> wrote:
>>> Read the documentation
>
>> from(xxx)
>> .inOut().to("activemq:queue:foo")
>> .threads(5)
>> .to(yyy)
>> .to(zzz);
>>
>
>                                from("direct:casemx")
>
>                                        
> .setExchangePattern(ExchangePattern.InOut)
>                                        .to("activemq:preparation")
>                                        .threads(10)
>
>                                        .to("bean:mocky?method=delay2000")
>                                        .to("mock:result");
>
> Using above DSL, it did work. But it does not for the following XML:
>
>                <route>
>                        <from uri="direct:casemx" />
>
>                        <setExchangePattern pattern="InOut" />
>                        <to uri="activemq:preparation" />
>                        <threads poolSize="10" />
>
>                        <to uri="bean:mocky?method=delay2000" />
>
>                        <to uri="mock:result" />
>                </route>
>
> Did I miss something?
>
> Another question is: How to apply this globally instead of applying
> this every time I see inOut pattern?
>
> Thanks
>
>
> --
> ~The best men are men who benefit to others
> http://michsan.web.id 一緒に勉強しましょう!
>
> Yang berkualitas memang beda rasanya!
> http://rizqi-cookies.com
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to