Run method infinitely in google app / gwt

I have a method that constantly listens for a stream from the server and writes data to a datastore in a google app which is later retrieved by other methods. How can I do this in a google app ie app when you call this method once during app startup and execute it indefinitely without affecting other things. I'm new to the java world, so please help with this point of view. How is it done in Java?

+2


a source to share


1 answer


Specifically for the Google app engine, you must use a task. However, Google's tasks for working with apps have a 30 second execution time limit or anything that runs on appengine like an HTTP request. This means that you are limited on long-term tasks. See: http://code.google.com/appengine/docs/java/taskqueue/overview.html



+2


a source







All Articles