2 Replies Latest reply: Aug 29, 2012 4:18 PM by 957685 RSS

    DownloadServiceListener methods not getting called

    957685
      I have the following JNLP; and in DownloadTracker, I am implementing DownloadServiceListner, but the progress methods and other methods, dont' get called even once. In the JWS logs, I can see progress entries, but why doesn't javaws.jar never call my methods ?

      Any ideas ?

      Thanks


      <?xml version="1.0" encoding="utf-8"?>

      <jnlp spec="1.0+" codebase="http://localhost:8080/demo_signed/" href="webstart.jnlp">
      <information>
      <title>Download Tracking WebStart Demo</title>
      <vendor>Tester</vendor>
      <homepage href="http://localhost:8080" />
      <description>A demo for download tracking in Java Webstart</description>
      </information>
      <update check="timeout" policy="prompt-update"/>
      <security>
      <all-permissions/>
      </security>
      <resources>
      <j2se version="1.6+" initial-heap-size="32m" max-heap-size="1024m"/>
      <jar href="downloadtracker.jar" download="progress" name="DownloadTracker" />
      <jar href="helloworld.jar" main="true"/>
      <jar href="a.jar"/>
      <jar href="b.jar"/>
      <property name="jnlp.server.url" value="http://localhost:8080" />
      </resources>
      <application-desc main-class="com.hello.HelloWorld" progress-class="downloadtracker.DownloadTracker"></application-desc>
      </jnlp>