[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-dev
Subject: Re: Non static WebClient?
From: "James Strachan" <james.strachan () gmail ! com>
Date: 2006-03-30 8:44:38
Message-ID: ec6e67fd0603300044k2a9e0f7bl36f157e73021f45b () mail ! gmail ! com
[Download RAW message or body]
On 3/25/06, Greg Wilkins <gregw@mortbay.com> wrote:
>
> James,
>
> OK I understand that now. Shall I'll modify the patch so that it can ei=
ther
> 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 w=
e
> 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.
--
James
-------
http://radio.weblogs.com/0112098/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic