camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Another problem?
Date Wed, 04 May 2011 12:26:59 GMT
Read the documentation

See request/reply over JMS
http://camel.apache.org/jms

On Wed, May 4, 2011 at 2:21 PM, Muhammad Ichsan <ichsan@gmail.com> wrote:
> On Wed, May 4, 2011 at 6:27 PM, Muhammad Ichsan <ichsan@gmail.com> wrote:
>> 2011/5/4 Claus Ibsen <claus.ibsen@gmail.com>:
>>> Hi
>>>
>
>
> It's still in sequence manner, even for this code:
>
> ExecutorService executor = Executors.newFixedThreadPool(10);
>
>                // When: 18 messages are sent
>                for (int i = 0; i < messageAmount; i++) {
>                        executor.execute(new Runnable() {
>                                @Override
>                                public void run() {
>                                        template.asyncSendBody("direct:casemx",
"Hello" + next());
>                                }
>                        });
>
>                }
>
> So, what your suggestion?
>
> --
> ~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: cibsen@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/
Mime
View raw message