users@glassfish.java.net

Re: sharing queue

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Dec 2008 07:52:40 PST

i tested my app and singleton pattern seems to work fine.

the thing that makes me thinking it wasn't working is that:
if i call size() method on BlockingQueue object after calling a processQueue() method [that starts runnable items in the queue] the result is always 0?

i'll be glad if someone can explain to me what's happening?

thanks.
[Message sent by forum member 'bellapost' (bellapost)]

http://forums.java.net/jive/thread.jspa?messageID=322398