On the consumer, eg the from

On Wed, Jan 29, 2020 at 5:41 PM Alex Soto <[email protected]> wrote:
>
> Thanks Claus….
>
> Oh, I see, after returning from the delay, it is a different thread that 
> processes the rest of the route.
> Where should the synchronous=true be added,  in the Producer or Consumer or 
> both URIs?
>
> Best regards,
> Alex soto
>
>
>
>
> > On Jan 29, 2020, at 11:13 AM, Claus Ibsen <[email protected]> wrote:
> >
> > The delay makes it asynchronous, set synchronous=true on the seda endpoint
> >
> > On Wed, Jan 29, 2020 at 4:52 PM Alex Soto <[email protected]> wrote:
> >>
> >> Hello,
> >>
> >> I have a question about SEDA consumer and parallelism.  When I set the 
> >> concurrentConsumers=1 and send multiple messages in parallel, I expect to 
> >> see the messages being processed in sequence, but what I see in the logs 
> >> is that they are being processed in parallel.
> >>
> >> My route looks more or less like this:
> >>
> >> <route id=“myroute">
> >>        <from 
> >> uri=“seda:myconsumer?purgeWhenStopping=true&amp;concurrentConsumers=1&amp;exchangePattern=inOnly”/>
> >>        <delay>
> >>                 <constant>1000</constant>
> >>        </delay>
> >> </route>
> >>
> >> From logs, I can see messages being processed in parallel by this route.  
> >> Any idea?
> >>
> >> (Camel version is 3.0.1)
> >>
> >> Best regards,
> >> Alex soto
> >>
> >>
> >>
> >>
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > http://davsclaus.com @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
>


-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to