On 3/25/06, Greg Wilkins <[EMAIL PROTECTED]> 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. -- James ------- http://radio.weblogs.com/0112098/
