activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Non static WebClient?
Date Thu, 30 Mar 2006 08:44:38 GMT
On 3/25/06, Greg Wilkins <> wrote:
> James,
> OK I understand that now.   Shall I'll modify the patch so that it can either
> share or create individual consumers for a queue.   Or do you think with
> the tweaks non-shared is sufficient?
> If we keep shared, I'll add a reference count on the shared consumer so we
> know when to clean it up.
> For the non-shared consumer, my current patch will close an idle
> consumer that is not being long-polled anymore.   Does a close
> return any prefetched messages to the queue?

Yes it does - so that should be good enough.

We can also ensure that the prefetch is set quite small for web based
consumers (say 1 message).

Lets go with the non-shared version as its a bit cleaner.



View raw message