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 Wed, 04 May 2011 11:27:06 GMT
2011/5/4 Claus Ibsen <claus.ibsen@gmail.com>:
> Hi
>
> Its a bit hard to follow your question?
>
> Concurrency all starts with consumers. So if you have a single thread
> that sends a message to "direct:casemx" then there is only a single
> thread processing in that given route.

This is how I send the message:
		for (int i = 0; i < messageAmount; i++) {
			template.asyncSendBody("direct:casemx", "Hello" + i);
		}

My question is, why 5 invocations of delay1000 takes only (more or
less) 1 seconds, meanwhile delay2000 takes 10 seconds (5 * 2000ms)?


-- 
~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