users@glassfish.java.net

Re: Glassfish v2 deployment race condition?

From: <glassfish_at_javadesktop.org>
Date: Wed, 19 Mar 2008 04:12:20 PST

Thanks for your reply Tim. Actually, I was just a little bit concerned about losing some events by the time I attach my progress listeners.

The code in ProgressObjectImpl does suggest that it keeps event object in a collection as indicated:

=================================================================
ProgressObjectImpl.java (line 402):

protected void fireProgressEvent(ProgressEvent progressEvent) {
...
   deliveredEvents.add(progressEvent);
}


(line 130):
public void addProgressListener(ProgressListener pol) {
...
            if (deliveredEvents.size() > 0) {
                Print.dprintln("Delivering undelivered messages...");
                for (Iterator i = deliveredEvents.iterator(); i.hasNext();) {
                    pol.handleProgressEvent((ProgressEvent)i.next());
                }
            }
...
}
[Message sent by forum member 'lyeung' (lyeung)]

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