The direct endpoint is synchronous, and its actually just like to glue two endpoints together. It runs in the current thread. Its like a procedure call. It does NOT have any queues, so the Exchange is routed immediately and as said uses the current thread.
On Thu, Aug 5, 2010 at 5:20 PM, hiba <mohammad.h...@gmail.com> wrote: > > Hi, > > I have an direct end point : say, direct:route1. > I have a multi-threaded environment, and each thread puts some few tens of > messages in this direct end point. > > I have three questions to ask : > > 1) Are the methods of beans which define my route work as though they are > synchronized?(is doTranslation() synchronized?? by camel). Note : i didnot > specifically synchronize doTranslation method. > 2) Each message is processed one by one or camel does some multi-threading, > so that messages are processed parallelly. > 3) Does the sequencing of messages are kept as they were placed into this > direct end point. Atleast the sequencing of messages sent by each thread > should be maintained. > > The definition of my route is given below : > > from("direct:route1").bean(MyTranslator.class, > "doTranslation").to("direct:route2"); > > > > Can please someone throw some light on this > > Thanks in advance > Hiba > -- > View this message in context: > http://camel.465427.n5.nabble.com/how-camel-handles-multiple-message-producers-tp2265509p2265509.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus