WebStart and Metrics

My group supports a Java application which we'd like to add "auto-update" functionality to. We have a rough implementation now where we place a version text file on our web server and the software compares this with its own version to determine if an update is available. Then, if the user downloads the update, the application sends certain user information which is collected for metrics then provides the updated JAR.

We'd like to do better, and Web Start looks like it might help... but... It's not entirely obvious how we'd still be able to collect metrics if Java Web Start is managing the downloading and installing of the application. Is there a way for an application, installed via Web Start, to send information to a server-side script before running the normal Web Start stuff?

TIA

[816 byte] By [IcyKonekoa] at [2007-11-27 6:10:55]
# 1

I think the best way to do this is to use a servlet to handle all the requests for the jnlp file and jar files of the application. You could modify the JnlpDownloadServlet (source found in the sample directory of the JDK) to record the ip address and frequency of Head Requests for the jnlp file . Assuming the jnlp file contains an href parameter, and no <offline-allowed> tag, Java Web Start will make at least one Head request for the jnlp file each time the application is run.

The servlet (w/o modification) would also give you the capability to do JNLP version-based downloading, jardiff updating of jnlp files, and pack-200 based downloading.

/Andy

dietz333a at 2007-7-12 17:16:48 > top of Java-index,Desktop,Deploying...