You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tarjei Huse <ta...@scanmine.com> on 2011/05/20 11:03:34 UTC
ProducerTemplate and blocking operations
Hi, I'm trying to use ProducerTemplate with the sematics of
BlockingQueue.send().
That is - I want sendBody (or a similar call) to block until the message
can be sent. I'm using seda queues(with size=2) in my test environment
but plan to use it also with activemq configured with producerFlowControl.
How should I set this up?
--
Regards / Med vennlig hilsen
Tarjei Huse
Mobil: 920 63 413
Re: ProducerTemplate and blocking operations
Posted by Tarjei Huse <ta...@scanmine.com>.
Hi,
On 05/20/2011 11:03 AM, Tarjei Huse wrote:
> Hi, I'm trying to use ProducerTemplate with the sematics of
> BlockingQueue.send().
>
> That is - I want sendBody (or a similar call) to block until the message
> can be sent. I'm using seda queues(with size=2) in my test environment
> but plan to use it also with activemq configured with producerFlowControl.
Testing shows that this works as expected(i.e. it blocks) when using JMS.
With seda queues you have to set waitForTaskToComplete=Always to get the
blocking behaviour.
Hmm, I wonder if the ProducerTemplate docs should say more about this.
Regards,
Tarjei
> How should I set this up?
>
>
>
>
--
Regards / Med vennlig hilsen
Tarjei Huse
Mobil: 920 63 413