JDK-6575167 : DownloadServiceListener RFE for webstart
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u1
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-06-28
  • Updated: 2014-02-03
  • Resolved: 2010-02-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Related Reports
Relates :  
J2SE Version (please include all output from java -version flag):
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

Does this problem occur on J2SE 1.4.x or 5.0.x ?  Yes / No (pick one)

Operating System Configuration Information (be specific):
Windows XP PRO SP2
IE 7.0

Hardware Configuration Information (be specific):
Sony VIAO laptop 2.8 Gz
1.25 GB RAM

Bug Description:
Currently, there is no way to add a DownloadServiceListener to the DownloadService without starting 
a download manually.  I don't want to have to do this.  I would like a way to add a listener to the
DownloadService in general, so I can be notified when a download (or whatever) is occuring.  Then 
I can decide what to do with the information.

For instance, our application is very modular.  Generally, when a module is loaded and initialized,
many of its classes will need to be loaded and webstart will therefore bring down the correct parts.
Our jar files and JNLP file is constructed carefully, but I don't really want to forced to maintain
which dependancies each module has.  However, if I want to show the user progress for this stage, I
would need to download the parts manually in order to add a listener.

Instead, it would be nice if I could implement the DownloadServiceListener (or something) and
register it with the DownloadService.  Then, when a jar file is being downloaded, I could give the
user some feedback.  It is great that webstart automatically downloads the classes that are needed 
on demand, but it is important that the user gets some explanation of why they are waiting for
something.  The current API makes these two items (automatic download / user feedback) mutually exclusive.
Customer really want this feature and it looks like not a big changes. Therefore I upgrade this RFE to P3

EVALUATION Customer really want this feature and it looks like not a big changes. Therefore I upgrade this RFE to P3