[appengine-java] Re: Best way to dynamic scheduled task
You could enqueue a task for each alert, which has as its ETA the date- time of the alert. On Mar 4, 2:10 pm, ale aleee...@gmail.com wrote: Hi everybody,Hello I'm writing an application that works as a calendar online (like google calendar). My question is: if a user sets an event to an hour, and I wanted to put an alarm to alert him (eg an email), how can I do ? I save the date of the event in a table, then I put up a task that checks every minute, and if the corret hour and send him the mail? There are better ways? thanks a lot! Alessandro -- 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: Best way to dynamic scheduled task
Good Idea! But I see on documentation that there is this limit: maximum countdown/ETA for a task30 days from the current date and time :-( But I can think about a beckend service that every day loop on my data e add task for event that are coming... Thanks a lot On Monday, March 5, 2012 10:33:14 AM UTC+1, Ian Marshall wrote: You could enqueue a task for each alert, which has as its ETA the date- time of the alert. On Mar 4, 2:10 pm, ale aleee...@gmail.com wrote: Hi everybody,Hello I'm writing an application that works as a calendar online (like google calendar). My question is: if a user sets an event to an hour, and I wanted to put an alarm to alert him (eg an email), how can I do ? I save the date of the event in a table, then I put up a task that checks every minute, and if the corret hour and send him the mail? There are better ways? thanks a lot! Alessandro -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/g2a8ten_3vkJ. 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: Best way to dynamic scheduled task
Of course, you could: · Set the ETA to be the earlier of the event date-time and 30 days from now. · When the task is executed, test for whether the event is now or in the past or not. · If now or in the past then · do your alert else · repeat from the first step above. On Mar 5, 3:01 pm, ale aleee...@gmail.com wrote: Good Idea! But I see on documentation that there is this limit: maximum countdown/ETA for a task 30 days from the current date and time :-( But I can think about a beckend service that every day loop on my data e add task for event that are coming... Thanks a lot On Monday, March 5, 2012 10:33:14 AM UTC+1, Ian Marshall wrote: You could enqueue a task for each alert, which has as its ETA the date- time of the alert. On Mar 4, 2:10 pm, ale aleee...@gmail.com wrote: Hi everybody,Hello I'm writing an application that works as a calendar online (like google calendar). My question is: if a user sets an event to an hour, and I wanted to put an alarm to alert him (eg an email), how can I do ? I save the date of the event in a table, then I put up a task that checks every minute, and if the corret hour and send him the mail? There are better ways? thanks a lot! Alessandro -- 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] Best way to dynamic scheduled task
This was like my first idea, and I think that will work. My doubt was about the use of the resource... I think that using task queue (as suggested by Ian Marshall) is less expansive than a cron job... Are you agree? Thanks Alessandro On Monday, March 5, 2012 4:19:04 PM UTC+1, Jeff Schnitzer wrote: When you set the alarm you want to create an Alarm object in the datastore somewhere. Have a cron that queries this table by date every minute. When it finds an entity, send the email and delete the Alarm. You need to record some way of recognizing when specific Alarms have been sent; you can't always guarantee that cron executes on schedule or that clocks are not skewed by some random number of minutes. The natural way to do this is by creating/deleting an object. Jeff On Sun, Mar 4, 2012 at 9:10 AM, ale ale.@gmail.com wrote: Hi everybody,Hello I'm writing an application that works as a calendar online (like google calendar). My question is: if a user sets an event to an hour, and I wanted to put an alarm to alert him (eg an email), how can I do ? I save the date of the event in a table, then I put up a task that checks every minute, and if the corret hour and send him the mail? There are better ways? thanks a lot! Alessandro -- -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/k0jLG8FQL8QJ. 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] Blobstore request working on production not in development
I'm using google app engine to develop an upload form to upload a csv file. The issue I'm currently having is that in a Development environment the request action is to being sent correctly. In the production environment the request action seems to work although the action is the same for both forms. Both development and production have the same post action which is derived from: form action=%= blobstoreService.createUploadUrl(/upload/form) % method=post enctype=multipart/form-data However, when the controller class looks at the request, the development action is not as expected (ie not '/form'). The action within the development environment appears to be the blobkey which changes every time eg('ag50cy1zY2gtcmVwb3J0c3IbCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGAEM') The production environment action = '/form' and processes the csv file as expected. The question I have is, is there any known differences that I should be aware of that would stop the request from being processed correctly on the development server? Or what is wrong with the development environment to cause this issue. Thanks in advanced -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/Ccw7zi-ZEjwJ. 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] Why GAE using struts1 application doesnt working with taglib in web.xml?
I need complete deployment structure for Struts1 using GAE. Also needed what are the jat files needed. -- 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] RestMQ on GAE
Hello, Has anyone successfully run RestMQ Messaging Service on GAE? It is similar to Java Messaging Service (JMS). Does anyone have any experience running a message broker on GAE? I have read the previous threads on the subject. I'm aware of TaskQueue but the issue is 1) you cannot use Java clients 2) GAE-specific technology. thx! -jmz -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/KYDmwlgU_mgJ. 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] Best way to dynamic scheduled task
It depends on your data volume and timeline... lots of alarms set out 12 months mean you have a huge churn just to keep state. And you'll have to use the task-name trick to prevent tasks which execute twice (they do sometimes) from re-enlisting a second future task, otherwise you will end up with people getting multiple alarms. Also, what happens when you want to kill an alarm or reset its date? Keeping state in the task queue is a PITA. What if you want to ask has the Alarm been fired or how many alarms are pending? Life is much simpler if you just store an Alarm object. With the minimum indexes, it ends up being maybe 10 datastore write ops per alarm lifetime. So 100,000 alarms (not counting actual work like email delivery) costs you $1. This is not something to lose sleep over. Jeff On Mon, Mar 5, 2012 at 10:54 AM, ale aleee...@gmail.com wrote: This was like my first idea, and I think that will work. My doubt was about the use of the resource... I think that using task queue (as suggested by Ian Marshall) is less expansive than a cron job... Are you agree? Thanks Alessandro On Monday, March 5, 2012 4:19:04 PM UTC+1, Jeff Schnitzer wrote: When you set the alarm you want to create an Alarm object in the datastore somewhere. Have a cron that queries this table by date every minute. When it finds an entity, send the email and delete the Alarm. You need to record some way of recognizing when specific Alarms have been sent; you can't always guarantee that cron executes on schedule or that clocks are not skewed by some random number of minutes. The natural way to do this is by creating/deleting an object. Jeff On Sun, Mar 4, 2012 at 9:10 AM, ale ale.@gmail.com wrote: Hi everybody,Hello I'm writing an application that works as a calendar online (like google calendar). My question is: if a user sets an event to an hour, and I wanted to put an alarm to alert him (eg an email), how can I do ? I save the date of the event in a table, then I put up a task that checks every minute, and if the corret hour and send him the mail? There are better ways? thanks a lot! Alessandro -- -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/k0jLG8FQL8QJ. 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] Deployment process with eclipse gae plugin
In my development workflow, I have a staging and a production app ID on GAE. In order to switch between them I have to hand edit the appengine-web.xml and specify the application and the version (or do it in the deploy dialog). This feels like it is rife for errors and is rather a pain in the arse. The reason is because the servlet container reloads as soon as I edit this file and thus my local datastore changes. If I forget to change it back then I'm left wondering what is wrong with my database. What would be nice is if on deployment, the dialog would ask me which version and which application id to deploy to and not actually modify my appengine-web.xml. Just use what I input as parameters for the deployment. I'd love to hear thoughts on how everyone here deals with this. I'd even be open to some command line tools or anything to help manage this. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/fvmo25hH8q4J. 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] RestMQ on GAE
A quick search digs up this: https://github.com/gleicon/restmq-appengine Warning: I haven't tried the app yet. Also - just a quick note: we will be turning this group (google-appengine-java) read-only very soon as part of our migration of QA to StackOverflow. See more details here: https://groups.google.com/forum/?fromgroups#!topic/google-appengine/Z6XN_64cA7w -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Sat, Mar 3, 2012 at 12:14 PM, jmz jjzeid...@gmail.com wrote: Hello, Has anyone successfully run RestMQ Messaging Service on GAE? It is similar to Java Messaging Service (JMS). Does anyone have any experience running a message broker on GAE? I have read the previous threads on the subject. I'm aware of TaskQueue but the issue is 1) you cannot use Java clients 2) GAE-specific technology. thx! -jmz -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/KYDmwlgU_mgJ. 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.
Re: [appengine-java] RestMQ on GAE
Oops, guess that project is in Python. It's probably a good place to start when implementing in Java. Also note that there are pull queues for task queues, and there ARE Java clients: http://code.google.com/appengine/docs/java/taskqueue/overview-pull.html -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Mon, Mar 5, 2012 at 5:00 PM, Ikai Lan (Google) ika...@google.com wrote: A quick search digs up this: https://github.com/gleicon/restmq-appengine Warning: I haven't tried the app yet. Also - just a quick note: we will be turning this group (google-appengine-java) read-only very soon as part of our migration of QA to StackOverflow. See more details here: https://groups.google.com/forum/?fromgroups#!topic/google-appengine/Z6XN_64cA7w -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Sat, Mar 3, 2012 at 12:14 PM, jmz jjzeid...@gmail.com wrote: Hello, Has anyone successfully run RestMQ Messaging Service on GAE? It is similar to Java Messaging Service (JMS). Does anyone have any experience running a message broker on GAE? I have read the previous threads on the subject. I'm aware of TaskQueue but the issue is 1) you cannot use Java clients 2) GAE-specific technology. thx! -jmz -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/KYDmwlgU_mgJ. 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] Reminder: Google App Engine community support is moving to Stack Overflow
Hi App Engine Developers, As we announced last month on this thread: http://groups.google.com/group/google-appengine/browse_thread/thread/67a5cdffae1c03bc/, we are migrating to Stack Overflow (http://stackoverflow.com) as the official channel for answering Java and Python development questions about Google App Engine. The Python and Java App Engine groups will be placed into read-only mode tomorrow (6th March). The google-appengine group ( http://groups.google.com/group/google-appengine) will remain open for general discussions and announcements that are better suited for the groups format. For those who missed this previous thread, it's probably useful to skim through it for a more detailed discussion about why we believe this transition to Stack Overflow for development questions will be an improvement for App Engine developers. From the thread, here is Ikai's original announcement: http://groups.google.com/group/google-appengine/msg/5d70b842714efd25 and here is a bit more amplification from Greg D'Alesandre, an App Engine Senior Product Manager: http://groups.google.com/group/google-appengine/msg/cf9183d4af1c36e6 If you are new to Stack Overflow, here are a few useful links: Questions tagged with 'google-app-engine': http://stackoverflow.com/questions/tagged/google-app-engine Some of the top users (i.e., question-answerers) for the SO app engine tag: http://stackoverflow.com/tags/google-app-engine/topusers and a bit more info on some of them: http://groups.google.com/group/google-appengine/msg/198422648752b9b6 You can subscribe to Stack Overflow tags via email: http://blog.stackoverflow.com/2010/12/subscribe-to-tags-via-emai/ and grab rss feeds for tags, e.g.: http://stackoverflow.com/feeds/tag?tagnames=google-app-enginesort=newest And then there is Andrin's great app for pulling SO feeds into mailing lists, to let you get new questions and answers in your mail client. See: http://stack-over-mail.appspot.com and in particular, subscribe to http://groups.google.com/group/google-appengine-stackoverflow ( google-appengine-stackoverf...@googlegroups.com) [You can add new tags as well]. Here is a Chrome extension for tracking new questions on a Stack Overflow tag: https://chrome.google.com/webstore/detail/bnnkhapbhkejookmhgpgaikfdoegkmdp And last but not least, from Bart: If you are on IRC freenode i just made a channel where my bot spams the RSS feed of stackoverflow. Channel is #appengine-overflow ;] -Amy -- 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.