[appengine-java] Re: Problem Authenticating against App Engine
Hi, would it be a good idea to keep an member variable with an httpClient. With that would be not neccessary to create a new DefaultHttpClient each time data is posted? Think of a use case in which data is posted or getted in intervalls... Greetings! Sky On 7 Feb., 11:01, Sky wrote: > Your code looks very good. Thanks! > > With my new sim card I could successfully connect to GAE. I think the > problem was, like you said, the expiration of the authentication > token... > > Thanks for your help! > > On 6 Feb., 21:15, Fabrizio Accatino wrote: > > > I follow another way: > > 1 - get auth token from AccountManager > > 2 - try to get the auth Cookie from AppEngine > > 3 - if step 2 fails, I invalidate the Auth token and restart from step 1. > > > My very alpha code is > > here:http://fhtino.blogspot.com/2011/02/connet-android-app-to-google-app-e... > > > Fabrizio > > > On Sun, Feb 6, 2011 at 8:12 PM, Sky wrote: > > > > One more question concerning the invalidation of the AuthToken. I read > > > that it invalidates after 24h. What is when the Activity, holding the > > > AuthToken (in NicksBlog the AppInfo class), ends (with finish() and > > > onDestroy) and started again? In my opinion a new valid AuthToken is > > > fetched every time the Appinfo class gets started. > > > In this case, why do I have to invalidate the old AuthToken? > > > > On 6 Feb., 19:46, Sky wrote: > > > > thanks for the clarification! > > > > > On 6 Feb., 17:16, Fabrizio Accatino wrote: > > > > > > The Nick's way is the good way. > > > > > > My note was about "OAuth". Afaik Android AccountManager class uses > > > > > ClientLogin for authentication on App Engine. > > > > > > Fabrizio > > > > > > On Sun, Feb 6, 2011 at 5:03 PM, Sky > > >wrote: > > > > > > > thanks for the answer. I will try it, as soon as my new mobile sim > > > > > > card has been activated ;). In the 2.3 emulator it worked with > > > another > > > > > > account... > > > > > > > ClientLogin: I did not find any sample code. The best documented way > > > I > > > > > > found was Nick's blog. Maybe Google should provide some > > > Tutorials/libs > > > > > > with sample code, that demonstrates the "perfect way" to > > > > > > authenticate > > > > > > an Android app with app engine using Google accounts... > > > > -- > > > 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-java@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-java@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: How to completely erase the datastore of an app
Hi meyertee, I'm using the account which I've created the app with!! Where may I set the authentication permissions? Thank you very much! Bye CRI On Jan 18, 7:38 pm, meyertee wrote: > Are you using Google Apps to authenticate users? > If you are, try signing in with a Google Apps account (setting it as GAE > admin before). I noticed that I can only use the Datastore-Admin with an > account of my Google-Apps-domain, not a GAE-admin account of another domain. > > I guess it's because the Datastore Admin is more on the "application-side" > rather than the "GAE-admin-side" and is using the standard authentication > method of your app, not the one that the GAE-dashboard is using. > > My url looks something like this (same as yours) and > works:http://1.latest.xxx.appspot.com/_ah/datastore_admin/?app_id=xxx -- 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-java@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: Creation of owned one-to-many problem
In this example it looks like you replace existing list (r.seznamNemovitosti) with completely new one. But what if there is already existing list? Another question. In JDO documentation it's told you don't need to make persistent all members of the object separately - all of them should be stored when owning object is stored (http://db.apache.org/ jdo/pm.html): When an object is persisted, if it has any other objects referenced from that object they also will be made persistent. This is referred to as persistence-by-reachability. The main benefit of this is that if you have an object graph to persist, then you don't need to call makePersistent() on all objects, instead just using one that can be used to find all of the others. Doesn't it apply to GAE? On Jan 27, 5:08 am, prabu wrote: > PersistenceManager pm = PMF.get().getPersistenceManager(); > Transaction tx = pm.currentTransaction(); > Realitka r = new Realitka (); > tx.begin(); > Nemovitost n = new Nemovitost (req.getParameter("value") > List nlist = new ArrayList(); > nlist.add(n); > r.setSeznamNemovitosti(nlist); > try { > pm.makePersistent(r); > > } finally { > tx.commit(); > pm.close(); > } -- 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-java@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] some api of persistence in scala for gae
some api of persistence in scala for gae? -- 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-java@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: some api of persistence in scala for gae
Hi, Starting points (also to get in touch with those people): http://groups.google.com/group/google-appengine-java/browse_thread/thread/322f249eea7354d/5fbf635c15ffdba2?lnk=gst&q=scala#5fbf635c15ffdba2 http://groups.google.com/group/google-appengine-java/browse_thread/thread/48affe2171c21239/2afa01ea2247c0b2?lnk=gst&q=scala#2afa01ea2247c0b2 regards didier On Feb 9, 12:39 pm, Davi da Silva Nogueira wrote: > some api of persistence in scala for gae? -- 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-java@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: some api of persistence in scala for gae
I'm looking for is an api to replace, JPA, JDO, objectify, that is written in scala. -- 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-java@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: some api of persistence in scala for gae
Hi again, Is https://github.com/FaKod/JPA-for-Scala what you are looking for ? didier On Feb 9, 1:49 pm, Davi da Silva Nogueira wrote: > I'm looking for is an api to replace, JPA, JDO, objectify, that is written > in scala. -- 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-java@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: Reposting question on jsp include.
Each page is pre-compiled for the live app. On the development server pages are compiled on the fly. This means that you have to pass your variables as parameters or attributes. I believe the best design pattern is to have a servlet catch your page request, create all the variables you need to display the view, then forward the page to the view with the variables stored as request attributes. I would like someone to confirm this pattern because I am also unsure if this is the "proper" way to handle this. On Feb 8, 1:38 am, Charms Styler wrote: > Hi rdayal, would appreciate a lot your response on this since no actual > answer was found out anywhere. > > could you pls explain why the included page cannot access variables of the > parent page on deployment ? because in dev server it works!!! > but while uploading the app it throws on jsp > > "cannot find symbol [javac] symbol : variable name" > > Overall a nasty error as fallows.. > > unable to update: > com.google.appengine.tools.admin.JspCompilationException: Failed to compile > jsp files. > at > com.google.appengine.tools.admin.Application.compileJsps(Application.java:413) > at > com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:291) > at > com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:54) > at > com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:271) > at > com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:146) > at > org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) -- 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-java@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] Testing cron locally
Could you tell me please how can I test cron locally? As far as I see it doesn't work. My code is dead simple. public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { System.out.println("inited!"); resp.setContentType("text/plain"); resp.getWriter().println("Cron test"); System.out.println("cron"); } cron.xml /test test every 1 minutes But Cnosole shows nothin. Nothing happens every minute. Would appreciate any help. Thank you. -- 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-java@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] Subdomains for my customers
Hi - I am creating a solution where I need to give a subdomain address for my customers eg: hello.xxx.com should revert back to appid.appspot.com/xxx Worst case xxx.appid.com pointing to appid.appspot.com/xxx Is it possible with Google app engine? If not, if there something I can play with. Thanks. -- 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-java@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] Tiles. Struts. No errors, no exceptions.
I am using Tiles and Struts in GAE App. All works on localhost but after uploading all into GAE one page doesn't work. No exception, no errors in logs in Admin. Quota is not exceed. How to know what is happened? Unfortunately all were work before Tiles. Please help me! -- 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-java@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] replicate
I have entity with 5 records into it. Now I want to replicate those 5 records into 500 records into same entity. so please suggest me how to do this I dont want to access each property of entity. Thanks in advance -- 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-java@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] How to make Cron trigger servlet from 01am to 04 am every day. Or how to terminate Cron task queue.
Hello, I hope my message would pass through pre-moderation :) The thing is — I need to trigger one task every 5 minutes in the interval from 01am till 04am. Cron would be good. But as I can see Google has cut off most of the Cron's native functionality. And my problem can not be solved only with Cron. (tell me if I'm mistaken) In such a case I could start Cron at 1am, and then, I would need to check the time and turn it off from Java at 04am. I see this the only decision. So how can I stop Cron from Java environment? Thank you! If some of the Googlers ever find this post — PLEASE make Cron schedule parameter much flexible! As it is in the original Cron. which makes it possible to set almost anything you want. It's so lame that I can't set cron to apply to the interval of time. -- 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-java@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] Task Queue timing out in 30 sec instead of the promised 10 min on GAE/J SDK 1.4
According to http://code.google.com/appengine/docs/java/taskqueue/overview.html#Task_Execution a single task has up to 10 minutes to execute. However, while testing my app in "slow mode" I discovered that the GAE/J SDK consistently times out queue tasks in 30 seconds (I'm on version 1.4.0). That is, of course, if the task need more than 30 seconds. Anything below that works fine. Scroll down for a stack trace. Is this a bug in SDK or do I have to configure something in queue.xml to increase the timeout limit? I couldn't find anything in the docs here: http://code.google.com/appengine/docs/java/config/queue.html I do not expect my tasks to exceed 30 seconds, but there might be exceptions, especially because some tasks make heavy use of URLFetch. I decided to check here before submitting a bug report in case I'm being stupid. Thanks, Yegor == [ERROR] Job default.task3 threw an unhandled Exception: com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 5: http method POST against URL http://0.0.0.0:/deferredTaskService timed out. at com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch(LocalURLFetchService.java:236) at com.google.appengine.api.taskqueue.dev.LocalTaskQueue$UrlFetchServiceLocalTaskQueueCallback.execute(LocalTaskQueue.java:471) at com.google.appengine.api.taskqueue.dev.UrlFetchJob.execute(UrlFetchJob.java:77) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) [ERROR] Job (default.task3 threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 5: http method POST against URL http://0.0.0.0:/deferredTaskService timed out.] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --- com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 5: http method POST against URL http://0.0.0.0:/deferredTaskService timed out. at com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch(LocalURLFetchService.java:236) at com.google.appengine.api.taskqueue.dev.LocalTaskQueue$UrlFetchServiceLocalTaskQueueCallback.execute(LocalTaskQueue.java:471) at com.google.appengine.api.taskqueue.dev.UrlFetchJob.execute(UrlFetchJob.java:77) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) == -- 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-java@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] How do you prevent _ah requests from hitting the servlet filter?
I'm building a healthcare app that will filter all requests (url pattern *, ideally). In the filter, I'm checking to see if the user is logged in and throwing the login page if he isn't (using Google user service). On the dev server this is a problem because the login page is simply a /_ah/login call and that will hit the filter again and cause an infinite loop. Is there a simple way to have the filter catch everything except some patterns like say /_ah/*? I don't want to enumerate all the URLs in the filter if I can avoid it. -- 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-java@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: Tiles. Struts. No errors, no exceptions.
Do you mean that all pages work, except one? Or not even one works? I am asking because if it the former, then the problem is page-specific. If it's the latter, then something's wrong with your application config. -- 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-java@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: some api of persistence in scala for gae
I'm not aware of one. Write one and open source it! The low-level datastore API is simple enough to port to Scala: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/package-summary.html You can build type safe abstractions around it. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Wed, Feb 9, 2011 at 4:49 AM, Davi da Silva Nogueira wrote: > I'm looking for is an api to replace, JPA, JDO, objectify, that is written > in scala. > > -- > 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-java@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-java@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: Ability to send mail using appspotmail.com
You probably already know this, but just in case you don't, "appid" has to be replaced with your app's real application id, as defined in your appengine-web.xml (for Java) or app.yaml (for Python). If you knew this already and you still cannot send emails, then you might have found a bug in app-engine. Alternatively, your from address might be blocked by a spam filter. -- 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-java@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] How do you prevent _ah requests from hitting the servlet filter?
Hi, In my app I have approached this problem in a different way without using filters. 1)I have a login servlet which checks for login and forwards to login page if user is not logged in. If the user is logged in ,it redirects to first page of app(different from index.html) 2)the index.html in my app delegates to this login servelt using onload function. 3)I use struts 1.3 and I have a base action which implements execute. Here I check if the user is logged in,else delegate it to login page.if user is logged in control is passed to child class. Thanks Hari On Feb 9, 2011 10:52 PM, "Sekhar Ravinutala" wrote: I'm building a healthcare app that will filter all requests (url pattern *, ideally). In the filter, I'm checking to see if the user is logged in and throwing the login page if he isn't (using Google user service). On the dev server this is a problem because the login page is simply a /_ah/login call and that will hit the filter again and cause an infinite loop. Is there a simple way to have the filter catch everything except some patterns like say /_ah/*? I don't want to enumerate all the URLs in the filter if I can avoid it. -- 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-java@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-java@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: Testing cron locally
Hi, Cron doesn't work locally on dev server: http://code.google.com/appengine/docs/java/config/cron.html#Cron_Support_in_the_Development_Server regards didier On Feb 9, 10:45 am, momijigari wrote: > Could you tell me please how can I test cron locally? > As far as I see it doesn't work. > > My code is dead simple. > > public void doGet(HttpServletRequest req, HttpServletResponse resp) > throws IOException > { > System.out.println("inited!"); > resp.setContentType("text/plain"); > resp.getWriter().println("Cron test"); > > System.out.println("cron"); > } > > cron.xml > > > > > /test > test > every 1 minutes > > > > But Cnosole shows nothin. Nothing happens every minute. > > Would appreciate any help. Thank you. -- 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-java@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: Subdomains for my customers
Hi, Google App Engine supports domain name wildcards via Google Apps dns: see http://code.google.com/appengine/docs/domain.html (especially bottom paragraph) but, it's not really an answer to your question as your xxx gets lost during redirection: all urls go to a single one but you lose the entry url. At least, may give you further ideas regards didier On Feb 8, 9:09 pm, Startworld67 wrote: > Hi - I am creating a solution where I need to give a subdomain address > for my customers eg: > > hello.xxx.com should revert back to appid.appspot.com/xxx > > Worst case > > xxx.appid.com pointing to appid.appspot.com/xxx > > Is it possible with Google app engine? > > If not, if there something I can play with. Thanks. -- 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-java@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: Subdomains for my customers
Hi, me again: my post above may be the right solution after all, under the condition that the wildcarding just does the redirect but does not change url. You have to check this after setting up your dns wildcard If yes, you are all set: a) you do redirect *.xxx.com to http://router.xxx.com (router.xxx.com being an app hosted by gae after proper setting) ( b) at router.xxx.com, you get the original url (let's say foo.xxx.com) in the http header and then you issue the http redirect header to appid.appspot.com/foo. (See http://www.java-tips.org/java-ee-tips/java-servlet/how-to-redirect-a-request-using-servlet.html to see how to do it in a servlet) regards didier On Feb 10, 7:03 am, Didier Durand wrote: > Hi, > > Google App Engine supports domain name wildcards via Google Apps dns: > seehttp://code.google.com/appengine/docs/domain.html(especially > bottom paragraph) > > but, it's not really an answer to your question as your xxx gets lost > during redirection: all urls go to a single one but you lose the entry > url. > > At least, may give you further ideas > > regards > > didier > > On Feb 8, 9:09 pm, Startworld67 wrote: > > > Hi - I am creating a solution where I need to give a subdomain address > > for my customers eg: > > > hello.xxx.com should revert back to appid.appspot.com/xxx > > > Worst case > > > xxx.appid.com pointing to appid.appspot.com/xxx > > > Is it possible with Google app engine? > > > If not, if there something I can play with. Thanks. > > -- 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-java@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: How to make Cron trigger servlet from 01am to 04 am every day. Or how to terminate Cron task queue.
Hi, If you're ok with creating 36 different jobs in you cron.xml (according to http://code.google.com/appengine/docs/java/config/cron.html#About_cron_xml), you can do it by having a separate job /myurl my job of 01:00 every day 01:00 /myurl my job of 01:05 every day 01:05 etc. Not elegant but should work regards didier On Feb 9, 11:06 am, momijigari wrote: > Hello, > > I hope my message would pass through pre-moderation :) > > The thing is — I need to trigger one task every 5 minutes in the > interval from 01am till 04am. > > Cron would be good. > But as I can see Google has cut off most of the Cron's native > functionality. > And my problem can not be solved only with Cron. (tell me if I'm > mistaken) > > In such a case I could start Cron at 1am, and then, I would need to > check the time and turn it off from Java at 04am. > I see this the only decision. > So how can I stop Cron from Java environment? > > Thank you! > > If some of the Googlers ever find this post — PLEASE make Cron > schedule parameter much flexible! > As it is in the original Cron. which makes it possible to set almost > anything you want. > > It's so lame that I can't set cron to apply to the interval of time. -- 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-java@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.