[appengine-java] Re: cron jobs
Hi, I am trying to send email for every hour. i write the code of cron.xml like above.But now the admin console shows status as follows. Cron Job Schedule/Last Run/Last Status (All times are UTC) /emailing repeated every one hour every 1 hours (UTC) 2010-02-24 12:28:02 on time Too many continues anybody help me, Am i set sny extra setting in any fike.Please help me. thanks Lakshmi. On Feb 23, 11:41 am, lakshmi sowji.ap...@gmail.com wrote: Thanks for your reply, ok i will try it. Thanks, Lakshmi. On Feb 22, 11:52 pm, bimbo jones bimbojone...@gmail.com wrote: Hi, If you want to receive the 'cron' word every 1 minute try logging the result instead of printing, or sending a email to you. 2010/2/22 lakshmi sowji.ap...@gmail.com 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 bimbojone...@gmail.com 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 sowji.ap...@gmail.com 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(); ListManager 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 descriptionrepeated every one minutes/description scheduleevery 1 minutes/schedule /cron /cronentries It was saved in war\WEB_INF My servlet for repeatedResults is as follws servlet servlet-nameRepeated/servlet-name servlet-classgoalsmanagement.RepeatedResults/servlet-class /servlet servlet-mapping servlet-nameRepeated/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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.com . 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.-Hide quoted text - - Show quoted text -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this
[appengine-java] Re: cron jobs
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 bimbojone...@gmail.com 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 sowji.ap...@gmail.com 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(); ListManager 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 descriptionrepeated every one minutes/description scheduleevery 1 minutes/schedule /cron /cronentries It was saved in war\WEB_INF My servlet for repeatedResults is as follws servlet servlet-nameRepeated/servlet-name servlet-classgoalsmanagement.RepeatedResults/servlet-class /servlet servlet-mapping servlet-nameRepeated/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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Cron jobs in google app engine
Hi You can hit the url as specified in the servlet-mapping to hit the cron on dev server. On appengine, it'll automatically be hit as per the schedule specified in cron.xml On Feb 22, 4:34 pm, Sowji sowji.ap...@gmail.com wrote: Hi, Google App Engine document specefied that, The dev appserver doesn't automatically run your cron jobs. You can use your local desktop's cron or scheduled tasks interface to hit the URLs of your jobs with curl or a similar tool. Is this means we need any external interfaces to hit our cron job? Please tell anybody with a clear example. 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: cron jobs
Thanks for your reply, ok i will try it. Thanks, Lakshmi. On Feb 22, 11:52 pm, bimbo jones bimbojone...@gmail.com wrote: Hi, If you want to receive the 'cron' word every 1 minute try logging the result instead of printing, or sending a email to you. 2010/2/22 lakshmi sowji.ap...@gmail.com 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 bimbojone...@gmail.com 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 sowji.ap...@gmail.com 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(); ListManager 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 descriptionrepeated every one minutes/description scheduleevery 1 minutes/schedule /cron /cronentries It was saved in war\WEB_INF My servlet for repeatedResults is as follws servlet servlet-nameRepeated/servlet-name servlet-classgoalsmanagement.RepeatedResults/servlet-class /servlet servlet-mapping servlet-nameRepeated/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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.com . 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.