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
