Hi, Thanks for your reply. The output for my present program is,the word a'cron' is printing only one time.
But i want to print it for every minute. Please help me to get that result. Thanks, Lakshmi. On Feb 18, 7:10 pm, bimbo jones <[email protected]> wrote: > Hi, > > if you want it to be printed on the browser you should use > pw.println("cron"); pw.close(); instead of System.out.println("cron"); > > 2010/2/18 Sowji <[email protected]> > > > > > Hi, > > Please help me in cron jobs,in google app engine. > > My program main code is as follows. > > ------------------------------------------ > > import java.io.IOException; > > import java.io.PrintWriter; > > import java.text.SimpleDateFormat; > > import java.util.Calendar; > > import java.util.List; > > import java.util.Timer; > > import java.util.TimerTask; > > import javax.jdo.PersistenceManager; > > import javax.servlet.http.HttpServlet; > > import javax.servlet.http.HttpServletRequest; > > import javax.servlet.http.HttpServletResponse; > > public class RepeatedResults extends HttpServlet { > > > public PersistenceManager pm=PMF.getInstance().getPersistenceManager(); > > List<Manager> list; > > public void doGet(HttpServletRequest req, HttpServletResponse resp) > > throws IOException { > > resp.setContentType("text/plain"); > > PrintWriter pw=resp.getWriter(); > > System.out.println("cron"); > > } > > } > > this code i wrote for printing a word like "cron" nuber of times. > > > My cron.xml is as follows. > > ------------------------------ > > <?xml version="1.0" encoding="UTF-8"?> > > <cronentries> > > <cron> > > <url>/repeated</url> > > <description>repeated every one minutes</description> > > <schedule>every 1 minutes</schedule> > > </cron> > > </cronentries> > > It was saved in war\WEB_INF > > My servlet for repeatedResults is as follws > > ---------------------------------------- > > > <servlet> > > <servlet-name>Repeated</servlet-name> > > <servlet-class>goalsmanagement.RepeatedResults</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name>Repeated</servlet-name> > > <url-pattern>/repeated</url-pattern> > > </servlet-mapping> > > I access this url from a html file. > > but result is print only one time.not repeatedly. > > My cron job status in admin console is as follows > > > cron Job Schedule/Last > > Run/Last Status (All times are UTC) > > /repeated > > repeated every one minutes every 1 minutes (UTC) > > > 2010-02-18 08:54:49 on time Success > > > could you please help me what was my mistake. > > thanks, > > Lakshmi. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine-java%2b[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en.- Hide quoted > >text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
