Perhaps someone more knowledgeable can comment, but the documentation for
seda component has a section on request-reply (
http://camel.apache.org/seda.html)

The same document warns about using seda with threads as in your example as
you will end up with two blocking queues (one because of seda and one
because of threadpool)

Best,
Artur

On Tue, Dec 26, 2017 at 3:21 PM, Mohammed Hany <[email protected]>
wrote:

> Hi,
>
> Can I use the Seda endpoint in a synchronous request-reply pattern? It is
> described here http://camel.apache.org/async.html.
>
> My route is simply:
> from (mina2)
> transform
> to (seda:ws)
>
> // Bottleneck route as it may have delay
> from(seda:ws)
> .threads(5000)      // Blocking queue due to the delay imposed by
> cxf:bean:x1
> to(cxf:bean:x1)
>
>
> This above routes will handle huge amount of requests. This is why I want
> to move from the direct: endpoint to seda:  however, I need to confirm the
> following:
> 1- Using Seda I can do  synchronous request-reply
> 2- Seda will benefit from the threadPoolProfile or threads as mentioned
> above.
>
> Regards,
> Hany
>

Reply via email to