code: public void run()
      {
          try
          {
              log.debug("CLOCK: Starting server-side thread");
  
              while (active)
              {
                  Collection<ScriptSession> sessions = sctx.getScriptSessionsByPage("/dwr/clock/index.html");
                  Util pages = new Util(sessions);
                  pages.setValue("clockDisplay", new Date().toString());
  
                  log.debug("Sent message");
                  Thread.sleep(1000);
              }
  
              Collection<ScriptSession> sessions = sctx.getScriptSessionsByPage("/dwr/clock/index.html");
              Util pages = new Util(sessions);
              pages.setValue("clockDisplay", "");
  
              log.debug("CLOCK: Stopping server-side thread");
          }
          catch (InterruptedException ex)
          {
              ex.printStackTrace();
          }
      }
docs: /* (non-Javadoc)
  @see java.lang.Runnable#run()