2 Replies Latest reply on Dec 30, 2002 2:52 AM by didi1976

    Timestamp of files

    didi1976

      Hello,

      I use JBoss 3.x with Jetty. I deployed an EAR containing also the WAR. The WAR contains an application client, which is distributed using WebStart.

      When I restart JBoss, it seems that the files on the server have changed and are downloaded again but I did not deploy any new files or change any of the existing.

      How can I prevent that behavoiur?

      Thanks in advance,
      Didi

        • 1. Timestamp of files
          didi1976

          I have made some further tests. It looks like it generates a date near the start of JBoss and does not use the information contained within the WAR.

          It can be reproduced by writing a small java app which does the following:

          URL url = new URL("http://127.0.0.1:8080/yourapp/yourFile.html");
          URLConnection con = url.openConnection();
          System.out.println(con.getContentLength());
          System.out.println(con.getLastModified());

          A closer look at the modification date shows that it is not the date from the WAR. If you restart JBoss and execute the app again, you get a new modification date.

          • 2. Re: Timestamp of files
            didi1976

            The solution to my problem was to switch to Tomcat.

            Jetty produces the (for my opinion) wrong result. Is this behaviour desired?