Hi William,

Actually that only makes sense if we keep a global reference counter
too.  Cause we only want to clear out the queues once the last
instance of the Vm component is shutdown.

Will work on it in a bit.

On 10/4/07, William Tam <[EMAIL PROTECTED]> wrote:
> We might want to add this to VmComponent as a way to clear out the
> static Map of BlockingQueues.   Notice that once the vm component has
> been stopped, entriies in the queues are deleted.  Starting it again
> will start with a clean slate.
>
>     @Override
>     protected void doStop() throws Exception {
>         super.doStop();
>         synchronized (queues) {
>             for (BlockingQueue q : queues.values()) {
>                 q.clear();
>             }
>             queues.clear();
>         }
>     }
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Reply via email to