[appengine-java] Re: Cron jobs in google app engine
but it is not working.my admin console shows cron ststus as follows more about cron. Cron JobSchedule/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 Thanks, Lakshmi On Feb 22, 10:53 pm, Sunny Gupta wrote: > 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 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.- 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
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 wrote: > Thanks for your reply, > > ok i will try it. > > Thanks, > Lakshmi. > > On Feb 22, 11:52 pm, bimbo jones 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 > > > > 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 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 > > > > > > 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 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. > > > > > -- > > > > > > > > > > > > > > > > > > > > /repeated > > > > > repeated every one minutes > > > > > every 1 minutes > > > > > > > > > > > > > > > It was saved in war\WEB_INF > > > > > My servlet for repeatedResults is as follws > > > > > > > > > > > > > > > > Repeated > > > > > goalsmanagement.RepeatedResults > > > > > > > > > > > > > > > Repeated > > > > > /repeated > > > > > > > > > > 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.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.-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 group at http://groups.google.com/
[appengine-java] Re: cron jobs
Thanks for your reply, ok i will try it. Thanks, Lakshmi. On Feb 22, 11:52 pm, bimbo jones 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 > > > > > 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 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 > > > > > 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 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. > > > > -- > > > > > > > > > > > > > > > > /repeated > > > > repeated every one minutes > > > > every 1 minutes > > > > > > > > > > > > It was saved in war\WEB_INF > > > > My servlet for repeatedResults is as follws > > > > > > > > > > > > > Repeated > > > > goalsmanagement.RepeatedResults > > > > > > > > > > > > Repeated > > > > /repeated > > > > > > > > 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.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.- 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 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.
Re: [appengine-java] Re: cron jobs
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 > 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 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 > > > > > > > > > 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 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. > > > -- > > > > > > > > > > > > /repeated > > > repeated every one minutes > > > every 1 minutes > > > > > > > > > It was saved in war\WEB_INF > > > My servlet for repeatedResults is as follws > > > > > > > > > > > Repeated > > > goalsmanagement.RepeatedResults > > > > > > > > > Repeated > > > /repeated > > > > > > 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 minutesevery 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.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. > > -- 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
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 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 > > > > > 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 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. > > -- > > > > > > > > /repeated > > repeated every one minutes > > every 1 minutes > > > > > > It was saved in war\WEB_INF > > My servlet for repeatedResults is as follws > > > > > > > Repeated > > goalsmanagement.RepeatedResults > > > > > > Repeated > > /repeated > > > > 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.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.