prassee
prassee

Reputation: 3629

google app engine cron.xml doesn't work

The cron.xml of GAE doesn't pick up the servlet specified in <cron> under <cronentries>. Also the cron configuration link is missing in the admin console. If anyone faced the same issue please let me know the solution. Btw. I am using GAE 1.4.3 with Eclipse plugin.

cron.xml:

  <?xml version="1.0" encoding="UTF-8"?>
  <cronentries>
  <cron>
  <url>/schedulerServlet</url>
  <description>triggered every 2 minutes</description>
  <schedule>every 2 minutes</schedule>
  </cron>
  </cronentries>

servlet code:

  public class SchedulerServlet extends HttpServlet {
     // doGet method definition{
        // things to do 
     }
  }

Upvotes: 3

Views: 1213

Answers (1)

paracycle
paracycle

Reputation: 7850

Are you testing this on the local development environment? If so, I am afraid to tell you that it is not supported on local development server.

Once you upload your code to GAE, you will see that it works like a charm.

Upvotes: 4

Related Questions