camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhammad Ichsan <ich...@gmail.com>
Subject Re: Another problem?
Date Thu, 05 May 2011 06:14:59 GMT
On Wed, May 4, 2011 at 8:47 PM, Muhammad Ichsan <ichsan@gmail.com> wrote:
> On Wed, May 4, 2011 at 7:26 PM, Claus Ibsen <claus.ibsen@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

Mime
View raw message