On Tue, 21 Dec 2004 20:24:25 -0800, Dwayne Ghant <[EMAIL PROTECTED]> wrote:
> The alarm is configured as any other servlet, with the addition of the
> run-at tag. The following configuration runs the servlet every 15
> minutes. If the hour is missing, e.g. :15 the service is run at the
> specified minute.
> 15 minute configuration
> 
> <servlet name='alarm' servlet-class='test.TestAlarm'>
> <run-at>:00, :15, :30, :45</run-at>
> </servlet>

Will be the the RUN-AT-paramter evaluated by Tomcat 5.0x or by anybody else?

I implemeted a small testscenario but get no log-output for the service-method:

...
<servlet>
  <servlet-name>timerTest</servlet-name>
  <servlet-class>de.spoon.report.TimerTestServlet</servlet-class>
  <run-at>:01, :02, :03, :05, :06</run-at>
  <load-on-startup>1</load-on-startup>
</servlet>
...

...
public class TimerTestServlet extends HttpServlet {
  
  private final static Logger logger = Logger.getLogger(TimerTestServlet.class);
        
  public void init(ServletConfig config) throws ServletException {
    super.init(config);
    logger.info("INIT: " + new Date());
  }
        
  public void service(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
                
    logger.info("SERVICE: " + new Date());
   }
}

Did i something wrong?

Regards, Thomas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to